import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String word = sc.nextLine();
        String[] nums = word.split(" ");

        int maxValue = nums[0].length();
        int maxIndex = 0;

        for (int i = 1; i < nums.length; i++) {
        if (nums[i].length() > maxValue) {
        maxValue = nums[i].length();
        maxIndex = i;
          }
        }
        /*
        System.out.println(" max value: " + maxValue);
        System.out.println(" max Index: " + maxIndex);
        */
        System.out.println(nums[maxIndex]);

       sc.close();
    }
}