// Compound Logic 2
// Print all numbers from 1 to 20 which are
// divisible by 3 or 7

#include<iostream>
using namespace std;

int main()
{
    for(int i = 1; i <= 20; i++)
	{
		if( i % 3 == 0 || i % 7 == 0 )
		{
            cout << i << endl;
		}
	}

    return 0;
}
