#include <bits/stdc++.h>

typedef long long ll;

using namespace std;

int main() {
    int n;
    cin >> n;

    int now = 1;

    for (int i = 1; i < n; i++) {
        if (i * i > n) {
            break;
        }

        now = i * i;
    }

    cout << now << endl;
    return 0;
}
#include "bits/stdc++.h"

using namespace std;

void solve()
{
    string s;
    cin >> s;
    int k = s.size();
    while (s[k - 1] != 'F')
        k--;
    cout << s.substr(0, k - 1) << endl;
}

int main()
{
    solve();
    return 0;
}
