#include using namespace std; int main() { int n,a,b,c,d,ans=0; cin>>a>>b>>c>>d; cout<