//KY168 求最大值
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
int x;
int main()
{
    while(cin>>x){
        int mx=x;
        for(int i=1;i<=9;i++){
            cin>>x;
            mx=max(x,mx);
        }
        cout<<"max="<<mx<<"\n";
    }
    return 0;
}