#include using namespace std; int a[205][205]; int main() { int x=0,y=0,lx,ly,N,ok=0; cout<>N; while (N) { if (N<0) { ++x, ++y; cout<>N; } else { if (!ok) { ok=1; cout<>N; } else { ok=1; cout<>N; } } } return 0; }