Problem2661--字符串-识别身份证号码练习

2661: 字符串-识别身份证号码练习

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 310  Solved: 152
[Status] [Submit] [Creator:]

Description

身份证号码是由18位数字组成的,其中,第7~14位数字表示:出生年、月、日。7、8、9、10位是年,11、12位是月,13、14位是日。
第17位数字表示性别:奇数表示男性(male),偶数表示女性(female)。 
例如:330523200808080035  
第7~14位数字20080808表示:2008年8月8日出生。  
第17位数字3表示:男性。 
已知一个身份证号码,请输出他的生日(月日前不能有0)和性别。

Input

输入一个18位数字的字符串

Output

输出2行,第一行是出生年、月、日
第二行根据结果输出male或female

Sample Input Copy

330523200808080035

Sample Output Copy

2008 8 8
male

Source/Category

 基础B