#include #define REP(i,a,b) for(i=a;i> N; for(i=0;i()); ll max = s_max(plus_cnt,minus_cnt); ll min = s_min(plus_cnt,minus_cnt); printf("%lld %lld\n",max,min); return 0; }