#include using namespace std; int n,r[40]; unordered_set dp[41][81]; int main(){ cin>>n; for(int i=0;i>r[i]; } dp[0][40].insert(0); for(int i=0;i