@@ -0,0 +1,1564 @@
+package com.javarush.task.task15.task1519;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0Aimport java.io.IOException;%0A%0A/* %0A%D0%A0%D0%B0%D0%B7%D0%BD%D1%8B%D0%B5 %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D1%8B %D0%B4%D0%BB%D1%8F %D1%80%D0%B0%D0%B7%D0%BD%D1%8B%D1%85 %D1%82%D0%B8%D0%BF%D0%BE%D0%B2%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        //%D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D1%82%D0%B5 %D1%82%D1%83%D1%82 %D0%B2%D0%B0%D1%88 %D0%BA%D0%BE%D0%B4%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A        String input = reader.readLine();%0A%0A        while (!%22exit%22.equals(input)) %7B%0A            try %7B%0A                if (input.contains(%22.%22)) %7B%0A                    print(Double.parseDouble(input));%0A                %7D else if (Integer.parseInt(input) %3E 0 && Integer.parseInt(input) %3C 128) %7B%0A                    print((short)Integer.parseInt(input));%0A                %7D else if (Integer.parseInt(input) %3C= 0 %7C%7C Integer.parseInt(input) %3E= 128) %7B%0A                    print(Integer.parseInt(input));%0A                %7D%0A            %7D catch (NumberFormatException nFE) %7B%0A                print(input);%0A            %7D finally %7B%0A                input = reader.readLine();%0A            %7D%0A        %7D%0A        reader.close();%0A%0A    %7D%0A%0A    public static void print(Double value) %7B%0A        System.out.println(%22%D0%AD%D1%82%D0%BE %D1%82%D0%B8%D0%BF Double, %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5 %22 + value);%0A    %7D%0A%0A    public static void print(String value) %7B%0A        System.out.println(%22%D0%AD%D1%82%D0%BE %D1%82%D0%B8%D0%BF String, %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5 %22 + value);%0A    %7D%0A%0A    public static void print(short value) %7B%0A        System.out.println(%22%D0%AD%D1%82%D0%BE %D1%82%D0%B8%D0%BF short, %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5 %22 + value);%0A    %7D%0A%0A    public static void print(Integer value) %7B%0A        System.out.println(%22%D0%AD%D1%82%D0%BE %D1%82%D0%B8%D0%BF Integer, %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5 %22 + value);%0A    %7D%0A%7D%0A

Complete task1519