#!/usr/bin/env python3 import sys def main(): N = int(input()) for i in range(10 ** 6 + 1): if i ** 3 == N: print("Yes") return print("No") return if __name__ == '__main__': main()