day = int(input())
month = str(input())
year = int(input())

x = year - 2000

y = str(year)

if x == 1:
    if month == 'january':
        if day == 1:
            print("Stopwatch babies are",day,"day, 1 month and",x,"year old on",day ,month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 1 month and",x,"year old on",day ,month, y+".")
    elif month == 'february':
        if day == 1:
            print("Stopwatch babies are",day,"day, 2 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 2 months and",x,"year old on",day, month, y+".")
    elif month == 'march':
        if day == 1:
            print("Stopwatch babies are",day,"day, 3 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 3 months and",x,"year old on",day, month, y+".")
    elif month == 'april':
        if day == 1:
            print("Stopwatch babies are",day,"day, 4 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 4 months and",x,"year old on",day, month, y+".")
    elif month == 'may':
        if day == 1:
            print("Stopwatch babies are",day,"day, 5 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 5 months and",x,"year old on",day, month, y+".")
    elif month == 'june':
        if day == 1:
            print("Stopwatch babies are",day,"day, 6 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 6 months and",x,"year old on",day, month, y+".")
    elif month == 'july':
        if day == 1:
            print("Stopwatch babies are",day,"day, 7 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 7 months and",x,"year old on",day, month, y+".")
    elif month == 'august':
        if day == 1:
            print("Stopwatch babies are",day,"day, 8 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 8 months and",x,"year old on",day, month, y+".")
    elif month == 'september':
        if day == 1:
            print("Stopwatch babies are",day,"day, 9 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 9 months and",x,"year old on",day, month, y+".")
    elif month == 'october':
        if day == 1:
            print("Stopwatch babies are",day,"day, 10 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 10 months and",x,"year old on",day, month, y+".")
    elif month == 'november':
        if day == 1:
            print("Stopwatch babies are",day,"day, 11 months and",x,"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 11 months and",x,"year old on",day, month, y+".")
    elif month == 'december':
        if day == 1:
            print("Stopwatch babies are",day,"day, 0 months and",(x+1),"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 0 months and",(x+1),"year old on",day, month, y+".")
elif x == 0:
    if month == 'january':
        if day == 1:
            print("Stopwatch babies are",day,"day, 1 month and",x,"years old on",day ,month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 1 month and",x,"years old on",day ,month, y+".")
    elif month == 'february':
        if day == 1:
            print("Stopwatch babies are",day,"day, 2 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 2 months and",x,"years old on",day, month, y+".")
    elif month == 'march':
        if day == 1:
            print("Stopwatch babies are",day,"day, 3 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 3 months and",x,"years old on",day, month, y+".")
    elif month == 'april':
        if day == 1:
            print("Stopwatch babies are",day,"day, 4 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 4 months and",x,"years old on",day, month, y+".")
    elif month == 'may':
        if day == 1:
            print("Stopwatch babies are",day,"day, 5 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 5 months and",x,"years old on",day, month, y+".")
    elif month == 'june':
        if day == 1:
            print("Stopwatch babies are",day,"day, 6 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 6 months and",x,"years old on",day, month, y+".")
    elif month == 'july':
        if day == 1:
            print("Stopwatch babies are",day,"day, 7 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 7 months and",x,"years old on",day, month, y+".")
    elif month == 'august':
        if day == 1:
            print("Stopwatch babies are",day,"day, 8 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 8 months and",x,"years old on",day, month, y+".")
    elif month == 'september':
        if day == 1:
            print("Stopwatch babies are",day,"day, 9 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 9 months and",x,"years old on",day, month, y+".")
    elif month == 'october':
        if day == 1:
            print("Stopwatch babies are",day,"day, 10 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 10 months and",x,"years old on",day, month, y+".")
    elif month == 'november':
        if day == 1:
            print("Stopwatch babies are",day,"day, 11 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 11 months and",x,"years old on",day, month, y+".")
    elif month == 'december':
        if day == 1:
            print("Stopwatch babies are",day,"day, 0 months and",(x+1),"year old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 0 months and",(x+1),"year old on",day, month, y+".")
else:
    if month == 'january':
        if day == 1:
            print("Stopwatch babies are",day,"day, 1 month and",x,"years old on",day ,month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 1 month and",x,"years old on",day ,month, y+".")
    elif month == 'february':
        if day == 1:
            print("Stopwatch babies are",day,"day, 2 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 2 months and",x,"years old on",day, month, y+".")
    elif month == 'march':
        if day == 1:
            print("Stopwatch babies are",day,"day, 3 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 3 months and",x,"years old on",day, month, y+".")
    elif month == 'april':
        if day == 1:
            print("Stopwatch babies are",day,"day, 4 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 4 months and",x,"years old on",day, month, y+".")
    elif month == 'may':
        if day == 1:
            print("Stopwatch babies are",day,"day, 5 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 5 months and",x,"years old on",day, month, y+".")
    elif month == 'june':
        if day == 1:
            print("Stopwatch babies are",day,"day, 6 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 6 months and",x,"years old on",day, month, y+".")
    elif month == 'july':
        if day == 1:
            print("Stopwatch babies are",day,"day, 7 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 7 months and",x,"years old on",day, month, y+".")
    elif month == 'august':
        if day == 1:
            print("Stopwatch babies are",day,"day, 8 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 8 months and",x,"years old on",day, month, y+".")
    elif month == 'september':
        if day == 1:
            print("Stopwatch babies are",day,"day, 9 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 9 months and",x,"years old on",day, month, y+".")
    elif month == 'october':
        if day == 1:
            print("Stopwatch babies are",day,"day, 10 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 10 months and",x,"years old on",day, month, y+".")
    elif month == 'november':
        if day == 1:
            print("Stopwatch babies are",day,"day, 11 months and",x,"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 11 months and",x,"years old on",day, month, y+".")
    elif month == 'december':
        if day == 1:
            print("Stopwatch babies are",day,"day, 0 months and",(x+1),"years old on",day, month, y+".")
        else:
            print("Stopwatch babies are",day,"days, 0 months and",(x+1),"years old on",day, month, y+".")
