<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pday(dayfmt):
 	""" 	P the day 	Friday the 24th 	"""


	year, month, day = map(int, dayfmt.split('-'))
	return '{day} the {number}'.format(
		day=calendar.day_name[calendar.weekday(year, month, day)],
		number=inflect.engine().ordinal(day),
	)