#include <iostream> #include <sstream> using namespace std; int main() { string a; int b; stringstream c; cin.getline(a); c<<a; c>>b; cout<<b<<endl; cout<<b+1<<endl; return 0; }