Олимпиадный тренинг

Задача 43661. wonderful numbers 9


Задача

Темы: Цикл for

Two natural numbers n and (n <= m) are given. Write a program that prints all numbers from n to m inclusive, satisfying at least one of the following conditions:

  • number is a multiple of 19;
  • number ends in 10;
  • the number is a multiple of 2 and 3 at the same time;
  • two-digit number.

Input
Two natural numbers n and (n <= m) are entered. Each number is written on a separate line.

Imprint
Print the answer to the problem.
 
Examples
# Input Output
1 95
110
95
96
97
98
99
102
108
110