EASY UVA PROBLEMS SOLVED IN JAVA