题目描述

Write a program to input month number and print total number of days in month using switch...case.
Example
Input
Input month number: 3
Output
Total number of days = 31

Tips:
Month: 1,3,5,7,8,10,12 -->each month has 31 days.
Month: 2 -->each month has 28 days.
Month: 4,6,9,11 --> each month has 30 days.


输入格式

The input consists of n (0<n<100) lines.
Each line consists of the month number(ranges from 1 to 12).
The last line of input consists of Int(-1).


输出格式


样例数据

输入

1
2
3
4
-1

输出

31
28
31
30


备注


操作

评测记录

优秀代码

信息

时间限制: 1s
内存限制: 128MB
评测模式: Normal

题解