using System;
public class Program
{
public static void Main()
String str1,str2;
int a,b,n=1;
str1=Console.ReadLine();
str2=Console.ReadLine();
a=Convert.ToInt32(str1);
b=Convert.ToInt32(str2);
if(a>b)
Console.Write("Invalid and Exit");
if(a<=0 || b<=0)
while(n!=11)
a=a+b;
b=b+10;n++;
}
Console.Write(a+" "+b);