For training JAVA by TopCoder_java