#pragma GCC optimize("Ofast") #pragma GCC target("avx2") #define rd_init() char*rp=({char*mmap();mmap(0l,1l<<25,1,2,0,0ll);}) #define rd_skip() while(*rp++>=48) #define rd() ({int _v=0,_c;while(_c=*rp++-48,_c>=0)_v=_v*10+_c;_v;}) #define wthi(v) {unsigned _z=v,_n=0;long _d=0;while(++_n,_d=_d<<8|0x30|_z%10,_z/=10);*(long*)wp=_d;wp+=_n;} #define wtlo(v) {unsigned _z=v,_n=8;long _d=0;while(_d=_d<<8|0x30|_z%10,_z/=10,--_n);*(long*)wp=_d;wp+=8;} #define wt(v) if(v>=100000000){wthi(v/100000000);wtlo(v%100000000);}else{wthi(v);} #define repeat(e) for(typeof(e)_=e;_--;) char wbuf[1<<25]; int main(){ char*wp=wbuf; rd_init(); rd_skip(); int m=rd(); unsigned p=1000000000; int q=10000000; int x=0; repeat(m){ unsigned a=rd(); if(a!=p+q){ wthi(q); *wp++='\n'; wt(a); *wp++=' '; p=a; q=0; ++x; } ++q; } wthi(q); int wlen=wp-wbuf; wp=wbuf; wthi(x); while(wp