For this Question: You are given a positive integer N. Check whether the number N is representable as the sum of the cubes of two positive integers i. e. check whether there exist two positive integers a and b such that a^3 + b^3 = N.First line contains an integer N.

Constraints
1 <= N <= 10^12Print "YES" if N is representable as the sum of the cubes of two positive integers otherwise "NO".Sample Input 1:
3

Output 
NO

Explanation:
3 cannot be represented as sum of two cubes.

Sample Input 2:
35

Output 
YES

Explanation:
35 = 8 + 27 = 2^3 + 3^3 , I have written this Solution Code: import math
def solve(n):
	lo = 1
	hi = round(math.pow(n, 1 / 3))
	while (lo <= hi):
		curr = (lo * lo * lo + hi * hi * hi)
		if (curr == n):
			return True
		if (curr < n):
			lo += 1
		else:
			hi -= 1
     
	return False

n=int(input())
if solve(n):
	print("YES")
else:
	print("NO"), In this Programming Language: Python, Now tell me if this Code is compilable or not?