P8722 [Lanqiao Cup 2020 NOI Qualifier AB3] Date Recognition
Description
Xiao Lan needs to process a lot of data, and some of the data are dates.
Among the dates Xiao Lan processes, there are two common formats: the English format and the numeric format.
The English format uses the first three letters of each month’s English name as the month identifier, followed by two digits for the day. The first letter of the month identifier is uppercase and the other two are lowercase. When the day is less than $10$, a leading $0$ must be added. The first three letters for January to December are `Jan`, `Feb`, `Mar`, `Apr`, `May`, `Jun`, `Jul`, `Aug`, `Sep`, `Oct`, `Nov`, `Dec`.
The numeric format directly uses two integers, separated by a space, and neither integer has a leading $0$. The month uses $1$ to $12$ to represent January to December, respectively.
Given a date in the English format, output its numeric format.
Input Format
Input a date in the English format.
Output Format
Output one line containing two integers, representing the month and the day of the date, respectively.
Explanation/Hint
Lanqiao Cup 2020, third round of the provincial contest, AB Division, Problem F.
Translated by ChatGPT 5