m = 0
for i in range(100, 201):
if i % 3 > 0:
print(i, end=" ")
m += 1
if m % 8 == 0:
print()
else:
continue
m = 0
for i in range(100, 201):
if i % 3 > 0:
print(i, end=" ")
m += 1
if m % 8 == 0:
print()
else:
continue