main = readLn >>= putStrLn . solve solve x = foldr go "No" [1..10^6] where go i ans | i*i*i == x = "Yes" | otherwise = ans