Skip to content
Snippets Groups Projects
8.py 213 B
Newer Older
hacker717's avatar
hacker717 committed
from itertools import cycle

food = [input() for _ in range(int(input()))]

daysc = int(input())

count = 0
for fd in cycle(food):
    if count < daysc:
        print(fd)
        count += 1
    else:
        break