#41298: python


suyueh (suyueh)

School : No School
ID : 272111
IP address : [125.228.45.241]
Last Login :
2025-06-02 18:21:06
a147. Print it all | From: [125.229.229.84] | Post Date : 2024-07-16 15:53

while True:
    n=int(input())
    if n==0:
        break
    answer=''
    for i in range(1,n):
        if i%7!=0:
            answer+=str(i)+' '
    print(answer[:-1])
 
ZeroJudge Forum