#include #include using namespace std; int n,a[14]; bool used[14]; int ans; void f(int i,int now) { if(i==n) { ans=max(ans,now); } else { for(int j=0;j>n; for(int i=0;i>a[i]; f(0,0); cout<