P = int(input()) ans = False limit = P**0.5 for i in range(1, int(limit) + 2): if limit <= i: break j = (P-(i**2))**0.5 if j.is_integer(): ans = True break print('Yes' if ans else 'No')