1188 统计天数


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

根据一些日期,以及日期上所做的标记,按条件统计其天数。

Input

输入数据含有不多于50个的具有格式“Mon. DD YYYY”的日期,有些日期后面可能标有*,每个日期占一行。

Output

统计任何月份中凡是25号的日期数,如果25号这一天后面标有*,则该天应加倍计算。

Sample

Input

Oct. 25 2003
Oct. 26 2003
Sep. 12 2003*
Juy. 25 2002*

Output

3

Source: qianneng


Comments

There are no comments at the moment.