백준 B5 3003 BIJELE
a, b, c, d, e, f = input().split() a=int(a) b=int(b) c=int(c) d=int(d) e=int(e) f=int(f) print(1-a, 1-b, 2-c, 2-d, 2-e, 8-f)