N = int(input()) for _ in range(8): print(N, end="") print()