import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); sc.close(); Set set = new HashSet<>(); for (int i = 1; i * i <= p; i++) { set.add(i * i); } for (int e : set) { if (set.contains(p - e)) { System.out.println("Yes"); return; } } System.out.println("No"); } }