#include <stdio.h>
#include <math.h>
int main(void) {
int N , m ;
scanf("%d" , &N) ;
m = (int)(sqrt(4 * sqrt(4*N) +1) -1 ) / 2 ;
printf("%d" , m) ;
return 0 ;
}
#include <math.h>
int main(void) {
int N , m ;
scanf("%d" , &N) ;
m = (int)(sqrt(4 * sqrt(4*N) +1) -1 ) / 2 ;
printf("%d" , m) ;
return 0 ;
}

without further ado, let’s get started