using System;
public class Program
{
public static void Main()
int n = 10;
for (int i = 1; i <= n; i++) {
//if(i % 3 != 0 || i % 7 != 0) {
//Console.WriteLine(i);
//}
if(i % 3 != 0 && i % 7 != 0) {
Console.WriteLine(i);
}