import math S=int(input()) print(S) r=int(math.sqrt(S/3)) print(r)