package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum = 5; //write your code here int temp; while((temp = Integer.parseInt(reader.readLine()))>5){ if(temp>maximum){ maximum = temp; } } System.out.println(maximum); } }