# n,m = list(map(int,input().strip().split()))
# a = list(map(int,input().strip().split()))
# b = list(map(int,input().strip().split()))
# a.reverse()
# s = []
# d = 0
# e = []
# for i in range(len(a)):
#     for j in range(len(b)):
#         s.append((a[i] + b[j]) % m)
#         d = max(s)
#         e.append(d)

e = [4,4,3,3,2]
for i in e:
    print(i, end = ' ')