#include #include #include #include int main() { //std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf()); int N; std::cin >> N; std::vector A; for (int i = 0; i <= N; i++) { for (int j = 0; j <= N; j++) { A.push_back(static_cast(std::pow(5, i) * std::pow(2, j))); } } std::sort(A.begin(), A.end()); for (unsigned int i = 0; i < A.size(); i++) { std::cout << A[i] << std::endl; } return 0; }