N = gets.to_i ng = 0 ok = 10 ** 7 while (ok - ng).abs >= 2 x = (ok + ng) / 2 if N <= x ** 3 ok = x else ng = x end end if N == ok ** 3 puts 'Yes' else puts 'No' end