#include<iostream>
#include<string>
using namespace std;

int main() {
    string name;
    int age;
    
    
    cin >> nmae >> age;
    
    
    if (age < 0 || age > 120) {
        cout << "Invalid input" << end
l;
        return 0;
    }
    
    
    age ++;
    
    
    cout << name << " " << age << endl;
    
    return 0;
}