#include #include using namespace std; int tab [500001]; int main() { int n; bool x; scanf("%d",&n; for(int i=0;i