func_code_string: #include <bits/stdc++.h>   using namespace std;   const int md = 1000000007;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     int tt{}, T{};     tt = 1;     while (tt--) {       int n{}, m{}, ans{}, k{}, a{}, b{}, c{}, f{};       cin >> n;       if (n == 1) {         cout <<  1 n ;         return 0;       }       if (n == 2) {         cout <<  2 1 n ;         return 0;       }       a = sqrt(n);       b = n - a * a;       for (int j = 0; j < b; ++j) {         for (int i = n + 1 - j * (a + 1) - a - 1; i < n + 1 - j * (a + 1); ++i) {           if (i > 0) cout << i <<    ;         }       }       if (b > 0) n = n - (b) * (a + 1);       for (int i = 0; i < a - b; ++i) {         for (int j = n + 1 - i * a - a; j < n + 1 - i * a; ++j) {           if (j > 0) cout << j <<    ;         }       }       cout <<   n ;     }     return 0;   }   