# 1070
X = int(input())
c1 = X + 1
c2 = c1 + 2
c3 = c2 + 2
c4 = c3 + 2
c5 = c4 + 2
c6 = c5 + 2
if X % 2 == 0:
    print(c1)
    print(c2)
    print(c3)
    print(c4)
    print(c5)
    print(c6)
else:
    print(X)
    print(X + 2)
    print(X + 4)
    print(X + 6)
    print(X + 8)
    print(X + 10)
# 1070
X = int(input())
c1 = X + 1
c2 = c1 + 2
c3 = c2 + 2
c4 = c3 + 2
c5 = c4 + 2
c6 = c5 + 2
if X % 2 == 0:
    print(c1)
    print(c2)
    print(c3)
    print(c4)
    print(c5)
    print(c6)
else:
    print(X)
    print(X + 2)
    print(X + 4)
    print(X + 6)
    print(X + 8)
    print(X + 10)