x = 1
while x <= 5:
    print(x, end=' ')
    x = x + 1
print('and', x)
