P27163 [AtCoder] Halcyon
提高-
题目描述

Problem Description

Iroha-chan recently learned about Halcyon Days. On Iroha-chan's calendar, this refers to the winter solstice on December Nth and the week before it. Since the physics enthusiast is kind, they decided to tell Iroha-chan which days are Halcyon Days. Given the date of the winter solstice \( N \), output the dates of Halcyon Days for 8 days.

Input Format

One line contains \( N \).

\( N \)

Output Format

Output the dates of Halcyon Days in ascending order (smallest first), one per line, for a total of 8 dates.

Sample Input and Output

Sample Input #1

21

Sample Output #1

14
15
16
17
18
19
20
21

Sample Input #2

8

Sample Output #2

1
2
3
4
5
6
7
8

Notes/Hints

Constraints

  • \( 8 \leq N \leq 31 \)

Sample Explanation 1

The winter solstice is on the 21st, so the starting date for Halcyon Days is the 14th.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
21
样例输出
14 15 16 17 18 19 20 21