import math
value = 87
sqrt = math.sqrt(87)
div = value // sqrt
mod = value % div
print(div, mod)
# Solução 2:
print(divmod(value, int(math.sqrt(value))))
aW1wb3J0IG1hdGgKCnZhbHVlID0gODcKc3FydCA9IG1hdGguc3FydCg4NykKCmRpdiA9IHZhbHVlIC8vIHNxcnQKbW9kID0gdmFsdWUgJSBkaXYKCnByaW50KGRpdiwgbW9kKQoKIyBTb2x1w6fDo28gMjoKCnByaW50KGRpdm1vZCh2YWx1ZSwgaW50KG1hdGguc3FydCh2YWx1ZSkpKSk=