#include #include #include #include #include #include #include //#define __int32 long long using namespace std; int table[100000][2] = {0}; int cnt = 0; int main(){ cin.tie(0); ios::sync_with_stdio(false); int n; int ans = 0; int in; bool flg; cin >> n; for(int i=0; i> in; flg = true; for(int ii=0; ii