#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main()
{
int a1,a2;
while(scanf("%d %d", &a1, &a2)!=EOF)
{
a1 = sqrt(pow(a1,2));
a2 = sqrt(pow(a2,2));
if(a1< pow(10,6) && a2<pow(10,6))
{
printf("%d\n",a1+a2);
}
else
{
printf("Error");
}
}
return 0;
}