while 1:a,b=raw_input().split();exec'print a,;a,b=b,b+a;'*8;print