@@ -0,0 +1,1133 @@
+package com.javarush.task.task16.task1616;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0A%0A/* %0A%D0%A1%D1%87%D0%B8%D1%82%D0%B0%D0%B5%D0%BC %D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%D1%8B%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        InputStreamReader in = new InputStreamReader(System.in);%0A        BufferedReader reader = new BufferedReader(in);%0A        //create and run thread%0A        Stopwatch stopwatch = new Stopwatch();%0A        stopwatch.start();%0A        //read a string%0A        reader.readLine();%0A        stopwatch.interrupt();%0A        //close streams%0A        reader.close();%0A        in.close();%0A    %7D%0A%0A    public static class Stopwatch extends Thread %7B%0A        private int seconds;%0A%0A        public void run() %7B%0A            try %7B%0A                //add your code here - %D0%B4%D0%BE%D0%B1%D0%B0%D0%B2%D1%8C%D1%82%D0%B5 %D0%BA%D0%BE%D0%B4 %D1%82%D1%83%D1%82%0A                while(!currentThread().isInterrupted()) %7B%0A                    Thread.sleep(1000);%0A                    seconds++;%0A                %7D%0A                System.out.println(seconds);%0A            %7D catch (InterruptedException e) %7B%0A                System.out.println(seconds);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Complete task1616