using System;
namespace _8._One_to_N__not_div_by_3_and_7_
{
class Program
static void Main(string[] args)
Console.Write("Please enter the value of N: ");
int n = Int32.Parse(Console.ReadLine());
for (int i = 1; i <= n; i++)
if (i % 3 != 0 && i % 7 != 0)
Console.WriteLine(i);
}
// Write a program that prints on the console the numbers from 1 to N, which are not divisible by 3 and 7 simultaneously. The number N should be read from the standard input.