#include int N; int W[100]; int main() { scanf("%d", &N); for (int i=0; i 0) return 1; if (isPossible(target, weight, pos+1) > 0) return 1; return 0; }