// Filename is "Max.java"
// Program to compute the maximum number in a set of positive
// numbers entered by the user

import java.io.*;

public class Max {
   public static void main (String args[]) throws IOException {
      DataInputStream stdin = new DataInputStream (System.in);
      
      int max = 0;

      // Read first number
      String token = stdin.readLine();
      int number = Integer.parseInt(token);

      while (number > 0) { // stop when we read 0
	 // if the number is bigger than max, then it's the new max
	 if (number > max) {
	    max = number;
	 }
	 // read the next number
	 token = stdin.readLine();
	 number = Integer.parseInt(token);
      }
      System.out.println ("The maximum is "+max);
   }
}

