def sample(x):
 count=0
 while count<x:
         if  count%5==0:
             print(count)
             count=count+1
         else :
             count=count+1             
i=int(input("Enter the upper limit"))
sample(i) 