#include <iostream> int main() { unsigned int n; std::cin >> n; for (int i = 1, s = 0; s <= n; s = i * i++) { std::cout << s << ' '; } return 0; }