public class Solution {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        while (true){
            String s = reader.readLine();
            if (s.equals("exit")){
                break;
            }try{
                if(s.contains(".")){
                    print(Double.parseDouble(s));
                }if (Short.parseShort(s)>0 || Short.parseShort(s)<128){
                    print(Short.parseShort(s));
                } else if (Integer.valueOf(s)<=0 || Integer.valueOf(s)>=128) {
                    print(Integer.parseInt(s));
                }
            }catch (Exception e){
            }print(s);
break;
        }

    }

    public static void print(Double value) {
        System.out.println("Это тип Double, значение " + value);
    }

    public static void print(String value) {
        System.out.println("Это тип String, значение " + value);
    }

    public static void print(short value) {
        System.out.println("Это тип short, значение " + value);
    }

    public static void print(Integer value) {
        System.out.println("Это тип Integer, значение " + value);
    }
}