Quý mấy?

View as PDF

Submit solution

Points: 1.00
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem type

Nhập giá trị là tháng đảm bảo thuộc [1, 12]. Kiểm tra xem tháng thuộc quý mấy - 1 <= month <= 3. Quý 1, in ra 1 - 4 <= month <= 6. Quý 2, in ra 2 - 7 <= month <= 9. Quý 3, in ra 3 - 10 <= month <= 12. Quý 4, in ra 4

INPUT

1 số nguyên x

OUTPUT

Quý tương ứng với tháng đó

SAMPLE INPUT

2

SAMPLE OUTPUT

1

Comments

Please read the guidelines before commenting.


There are no comments at the moment.