X=4000 C=int(input())*10**15 while X**5+X*10**12>C:X-=1 else:print(f'{X:04,}'.replace(",","."))