@@ -0,0 +1,1339 @@
+package com.javarush.task.task16.task1608;%0A%0A/* %0A%D0%9F%D1%80%D0%BE%D0%B4%D0%B2%D0%B8%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5 %D0%BD%D0%B0 %D0%BF%D0%BE%D0%BB%D0%B8%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D1%85 %D0%B4%D0%B5%D0%B1%D0%B0%D1%82%D0%B0%D1%85%0A*/%0A%0Apublic class Solution %7B%0A    public static int totalCountSpeeches = 200;%0A    public static int soundsInOneSpeech = 1000000;%0A%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        Politician ivanov = new Politician(%22%D0%98%D0%B2%D0%B0%D0%BD%D0%BE%D0%B2%22);%0A        ivanov.join();%0A        Politician petrov = new Politician(%22%D0%9F%D0%B5%D1%82%D1%80%D0%BE%D0%B2%22);%0A        Politician sidorov = new Politician(%22%D0%A1%D0%B8%D0%B4%D0%BE%D1%80%D0%BE%D0%B2%22);%0A%0A        while (ivanov.getCountSpeeches() + petrov.getCountSpeeches() + sidorov.getCountSpeeches() %3C totalCountSpeeches) %7B%0A        %7D%0A%0A        System.out.println(ivanov);%0A        System.out.println(petrov);%0A        System.out.println(sidorov);%0A    %7D%0A%0A    public static class Politician extends Thread %7B%0A        private volatile int countSounds;%0A%0A        public Politician(String name) %7B%0A            super(name);%0A            start();%0A        %7D%0A%0A        public void run() %7B%0A            while (countSounds %3C totalCountSpeeches * soundsInOneSpeech) %7B%0A                countSounds++;%0A            %7D%0A        %7D%0A%0A        public int getCountSpeeches() %7B%0A            return countSounds / soundsInOneSpeech;%0A        %7D%0A%0A        @Override%0A        public String toString() %7B%0A            return String.format(%22%25s %D1%81%D0%BA%D0%B0%D0%B7%D0%B0%D0%BB %D1%80%D0%B5%D1%87%D1%8C %25d %D1%80%D0%B0%D0%B7%22, getName(), getCountSpeeches());%0A        %7D%0A    %7D%0A%7D%0A%0A

Complete task1608