public static void main(String[] args) {
        try {
            final String input = System.getenv("input"); //getting input
            ICalculator calc = new CalculatorRPN();
            float result = calc.calculate(input);

            String formattedResult = formatResult(result);
            System.out.println(formattedResult);
            
        } catch(Exception e) {
            System.out.println("Fail on " + e.getMessage() + " symbol");
        } 
    }