#include<iostream>
#include<string>
#include<algorithm>
#include<vector>

std::string toModifiedBinary(int n) {
    std:: string binary = "";
    while (n > 0) {
        if (n % 2 ==0) {
            binary += '3';
        } else {
            binary +='4';
        }
        n /=2;
    }
std::reverse(binary.begin(),binary.end());
return binary;
}
int main() {
    
        int N;
        if (!(std::cin >> N)) {
            return 0;
        }
        if (N < 0) {
            std ::cout << "Invalid input" << std::endl;
        }else{
            for (int i = 1; <= N; ++i) {
                std::cout << toModifiedBinary(i) << (i == N ? "" : " ");
            }
        std::cout << std::endl;
        }
    return 0;
}