months=['January','February','March','April','May','June','July','August','September','October','November','December']
//以1-31的数字作为结尾的列表
endings=['st','nd','rd']+17*['th']\
+['st','nd','rd']+7*['th']\
+['st']
year=input('请输入一个年份:')
month=input('请输入一个月份:')
day=input('请输入一个日子:')
month_number=int(month)
day_number=int(day)
//月份和天数减1以获得正确索引
month_name=months[month_number-1]
ordinal=day+endings[day_number-1]
print(month_name+' '+ordinal+'.'+year)