#include using namespace std; int n,a,b,c; int N=200005; int main(){ cin>>n>>a>>b>>c; int dp[200005]; fill(dp,dp+N,-1); dp[0]=0; for(int i=0;i