#include <iostream>
#include<stdio.h>
using namespace std;
int main()
{
int n,n1;
int a=scanf("%d",&n);//storing the input "1" in n also as the no of inputs is 1 "a" will have 1
cout<<a<<" "<<n<<endl;
a=scanf("%d %d",&n,&n1);//storing the input "2" in n and "3" in n1 also as the no of inputs is 2 "a" will have 2
cout<<a<<" "<<n<<" "<<n1<<endl;
a=scanf("%d",&n);//EOF reached so the previous input of n will remain i.e. 2 and a will have -1
cout<<a<<" "<<n<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZTxzdGRpby5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBpbnQgbixuMTsKICAgIAogICAgaW50IGE9c2NhbmYoIiVkIiwmbik7Ly9zdG9yaW5nIHRoZSBpbnB1dCAiMSIgaW4gbiBhbHNvIGFzIHRoZSBubyBvZiBpbnB1dHMgaXMgMSAiYSIgd2lsbCBoYXZlIDEKICAgIGNvdXQ8PGE8PCIgIjw8bjw8ZW5kbDsKICAgIAogICAgYT1zY2FuZigiJWQgJWQiLCZuLCZuMSk7Ly9zdG9yaW5nIHRoZSBpbnB1dCAiMiIgaW4gbiBhbmQgIjMiIGluIG4xIGFsc28gYXMgdGhlIG5vIG9mIGlucHV0cyBpcyAyICJhIiB3aWxsIGhhdmUgMgogICAgY291dDw8YTw8IiAiPDxuPDwiICI8PG4xPDxlbmRsOwogICAgCiAgICBhPXNjYW5mKCIlZCIsJm4pOy8vRU9GIHJlYWNoZWQgc28gdGhlIHByZXZpb3VzIGlucHV0IG9mIG4gd2lsbCByZW1haW4gaS5lLiAyIGFuZCBhIHdpbGwgaGF2ZSAtMQogICAgY291dDw8YTw8IiAiPDxuPDxlbmRsOwogICAgcmV0dXJuIDA7Cn0=