#include <iostream>
using namespace std;
int main()
{
cout << 100000 << endl;
for(int i=1;i<99999;i++)
cout << i << " ";
cout << 100000 << " " << 99999;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgCiAgICBjb3V0IDw8IDEwMDAwMCA8PCBlbmRsOwogICAgZm9yKGludCBpPTE7aTw5OTk5OTtpKyspCiAgICAgICAgY291dCA8PCBpIDw8ICIgIjsKICAgIGNvdXQgPDwgMTAwMDAwIDw8ICIgIiA8PCA5OTk5OTsKfQo=