#include <iostream>
using namespace std;
int main()
{
int a;
while(cin>>a)
cout<<a<<endl;
while(a/10!=0)
{ a=a/10;
}
return 0;