#include <iostream>
using namespace std;
int main()
{
int arr[] = {1, 4, 6};
for(int a : arr) {
for(int b : arr) {
int value = (a * 10) + b;
cout << value << endl;
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CglpbnQgYXJyW10gPSB7MSwgNCwgNn07Cglmb3IoaW50IGEgOiBhcnIpIHsKICAgIAlmb3IoaW50IGIgOiBhcnIpIHsKICAgICAgICAJaW50IHZhbHVlID0gKGEgKiAxMCkgKyBiOwogICAgICAgIAljb3V0IDw8IHZhbHVlIDw8IGVuZGw7CiAgICAJfQoJfQoJcmV0dXJuIDA7Cn0=