@staticmethod
def b():
    for l in [sys.stdin.readline().rstrip() for _ in range(4)][::(- 1)]:
        print(l[::(- 1)])
@staticmethod
def b():
    for l in [sys.stdin.readline().rstrip() for _ in range(4)][::(- 1)]:
        print(l[::(- 1)])