# Arup Guha
# 12/8/2020
# Solution to COP 2930 Final Exam Part A Problem 3

n = int(input("Please enter a positive integer.\n"))

# x is the value we are trying.
x = 1

# We keep on going as long as its cube is <= n, adding 1 each time.
while x*x*x <= n:
    x += 1

# We overshot so update res to be 1 less than x.
res = x-1

print("Largest integer <= cuberoot of",n,"is",res)
