(java) Solved problem 51