public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while(scanner.hasNext()) {
            String label = scanner.next();
            if (scanner.hasNextInt()) {                              // Check if we get the value as an integer
                int length = scanner.nextInt();
                if (length > BAR_LENGTH || length < 0) {            // Check if input is from 0 - 30
                    System.out.println("INPUT ERROR");
                    return;
                } else
                    System.out.println(drawBar(label, length));
            } else if (scanner.hasNextDouble()) {                    // Check if we get the value as an double
                double length = scanner.nextDouble();
                if (length > 1.0 || length < 0) {                   // Check if input is from 0 - 1
                    System.out.println("INPUT ERROR");
                    return;
                } else
                    System.out.println(drawBar(label, length));
            } else {                                                // invalid input
                System.out.println("INPUT ERROR");
                return;
            }
        }
    }