import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); boolean [] dp = new boolean [16384*2+1]; dp[0]=true; for(int i=0; i