i tried it both way by using Scanner and BufferedReader but it doesnt work i've got following error java.lang.NumberFormatException: Solution.java, method main, line: 17 Error converting a string to a number (invalid format). plz help me how to solve