n=int(input())for i in range(1,n): if (i%7)!=0: print(i,end=' ') print()
Standard input is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!