Update UVA10684.java