#include "testlib.h" using namespace std; const int MIN_N = 3; const int MAX_N = 200'000; const int MIN_A = 0; const int MAX_A = 1; int main() { registerValidation(); int N = inf.readInt(MIN_N,MAX_N); inf.readEoln(); for(int i = 0; i < N; i++){ inf.readInt(MIN_A, MAX_A); if(i != N - 1){ inf.readSpace(); }else{ inf.readEoln(); } } inf.readEof(); }