#include <iostream>
#include <ctime>
#include <cstdlib>
#include <cmath>

using namespace std;

int main() {
    
    long long int n; 
    
    cin >> n;
    
    srand(time(NULL));
    
    long long int k= rand()%sqrt(n) +1; 
    cout << k;
    
    return 0;
}