a, n = map(int,input().split()) print(a) print(0)