#include <bits/stdc++.h>

using namespace std;
int a, b;
int main()
{
    for(int i = 1 ; i < 101 ; i++ )
    {
        char cmd[100];
        sprintf(cmd, ".%d.in", i);
        freopen(cmd, "r", stdin);
        sprintf(cmd, ".%d.out", i);
        freopen(cmd, "w", stdout);
        cin>>a>>b;
        if( a > b ) cout<<a<<endl;
        else cout<<b<<endl;
        fclose(stdin);
        fclose(stdout);
    }

}
