#include <stdio.h>

int main(void) {
	// your code goes here
    int i=1,a,max=0;
    do
    {
     scanf("%d",&a);
     if(a>=max)
       max=a;
       i++;
    }
     while(i<=20);
     printf("%d",max );
	return 0;
}
