#include <iostream> using namespace std; int main() { string s; cin>>s; if(s[2]=='1'){cout<<"11111111111\n";return 0;} else{cout<<"1\n";return 0;} }