#include <iostream>
#include<string>
using namespace std;
int isnum(string str)
{
int a=str[0];
if(48<=a&&a<=57)
{
return 1;
}
else 0;
}
int main() {
string str;
// your code goes herehttps://i...content-available-to-author-only...e.com/accFsT#
cin>>str;
int a=str[0];
cout<<a<<endl;
cout<<isnum(str)<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZTxzdHJpbmc+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBpc251bShzdHJpbmcgc3RyKQp7CiAgICBpbnQgYT1zdHJbMF07CiAgICBpZig0ODw9YSYmYTw9NTcpCiAgICB7CiAgICAgICAgcmV0dXJuIDE7CiAgICB9CiAgICBlbHNlIDA7Cn0KaW50IG1haW4oKSB7CglzdHJpbmcgc3RyOwoJLy8geW91ciBjb2RlIGdvZXMgaGVyZWh0dHBzOi8vaS4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uZS5jb20vYWNjRnNUIwoJY2luPj5zdHI7CiBpbnQgYT1zdHJbMF07CiBjb3V0PDxhPDxlbmRsOwogY291dDw8aXNudW0oc3RyKTw8ZW5kbDsKCXJldHVybiAwOwp9