#include #include using namespace std; using ll = long long; int main() { int N; cin >> N;set ans; for(ll t = 1, i = 0; i <=N; i++,t*=2){ for(ll te =1,j = 0; j <= N; j++,te*=10){ ans.insert(t*te); } } for(const ll a:ans){cout << a <