#P8722. English Date to Numeric Date Conversion

    ID: 21886 Type: Default 1000ms 256MiB

English Date to Numeric Date Conversion

English Date to Numeric Date Conversion

Little Blue is dealing with a large amount of data, and some of the data represent dates. The dates come in two common formats: the English format and the numeric format.

The English format uses the first three letters of the month in English with the first letter uppercase and the next two lowercase, followed by a two-digit day. If the day is less than 10, it will have a leading zero. The three-letter abbreviations for months from January to December are: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec.

The numeric format expresses the date as two integers separated by a single space. In this format, the month is represented by an integer from 1 to 12, and the day is also an integer with no leading zeros.

Given an input date in the English format, your task is to convert and output its numeric format.

The conversion uses the formula:\\ $$month\_number = f(\text{month abbreviation}),\\ day\_number = \text{integer value of the day part}$$

inputFormat

The input consists of a single line containing the date in the English format. For example: Jan01.

outputFormat

Output the date in numeric format as two integers separated by a space. For example: 1 1 for Jan01.

sample

Jan01
1 1