#include using namespace std; typedef int64_t ll; const int mod=1000000007; int main(){ int n,a,b,c; cin>>n>>a>>b>>c; bool ans; if(a