#include<iostream>
#include<string>
using namespace std;
class patient{
    private:
    string name;
    int age;
    public:
    patient(string n,int a):name(n),age(a){}
    patient&operator++(){
        ++age;
        return*this;
    }
    string getname()const{
        return name;
    }
    int getage()const{
        return age;
    }
};
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<<p.getname()":"<<p.getage()<<endl;
    }
    return 0;
}