#include <iostream>
#include <string>
using namespace std;

class Patient
{
    public:
    string name;
    int age;
    
    Patient(string n, int a):name(n), age(a) {}
   Patient& operator++()
   {
       age++;
       return *this;
   }
};
int main()
{
    string name;
    int age;
    cin>>name>>age;
    
    if(age<0||age>120)
    {
        cout<<"Invalid input"<<endl;
    }
    else
    {
        Patient p(name, age);
        ++p;
        cout<<"Updated age of "<<p.name<<": "<<p.age>>endl;
    }
return 0;
}