#include <iostream> 
using namespace std; 

int dig(long long total);
int dig(long long total)
{  if(total<10)
       return 1;
    else
        return (1 + dig(total/10));
    
}

int main () 
{ 
long long a=0;
long long b=0;

do{
cin>>a;
cin>>b;

}while(a<0 || a>1000000 || b<0 || b>1000000);

    long long total = a+b;

return 0; 
}