#include #include #include using namespace std; int a1[1001]={0},a2[1001]={0},b1[1001]={0},b2[1001]={0}; int main(){ int n,x,y,t,i;string s; cin>>n;unsigned long long tot=0; int spe=0,spe2=0; for (i=0;i>x>>y; cout<