Помогите пожалуйста разобраться, вроде работает правильно, но валидацию не проходит. p
ublic class Solution {
    public static void main(String[] args) throws IOException {
        //напиште тут ваш код
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            while (true) {
            String line = br.readLine();

            try {
            if (line.equals("exit")){
                break;
            }

            else if (line.contains(".")) {
                double value = Double.parseDouble(line);
                print(value);
                continue;

            } else if (Integer.parseInt(line) < 128 && Integer.parseInt(line) > 0) {
                short value = Short.parseShort(line);
                print(value);
                continue;

            } else if (Integer.parseInt(line) <= 0 || Integer.parseInt(line) >= 128) {
                Integer value = Integer.parseInt(line);
                print(value);
                continue;

            } }
        catch (Exception e){
            System.out.println(line);
        }

        }

        br.close();

    }