#include <stdio.h>

int main() {
    int a=0,b=0;
    while (scanf("%d",&b) != EOF) {
        if(b>a) a=b;
    }
    printf("%d",a);
    return 0;
}