Solved 81A.java