exec("import ran"+"dom as r");A=r.randint(0,10**9);print(A,int(input())-A)