1059: 最高分
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int number=-1;while(cin.hasNext()){
int x=cin.nextInt();if(x<0) break;else number=Math.max(x,number);}System.out.println(number);}
}