import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
int year=s.nextInt();//出生年
int month=s.nextInt();//出生月
getAge(year,month);//调用getAge
}
static void getAge(int year,int month) {
month=4-month;
if(month>0) {
year=2016-year;
}else {
year=2015-year;
month=month+12;
}
System.out.printf(year+"岁"+month+"个月");//打印
}
}