def perfect_square(x):
    if (x == 0 or x == 1):
        return x 
    i = 1 
    result = 1
    while (result <= x):
      
        i += 1
        result = i * i
      
    return i - 1
  
x = int(input('Enter no.'))
print(perfect_square(x))
  

def perfect_square(x):
    if (x == 0 or x == 1):
        return x 
    i = 1 
    result = 1
    while (result <= x):
      
        i += 1
        result = i * i
      
    return i - 1
  
x = int(input('Enter no.'))
print(perfect_square(x))
  
