#P136. 【例23.1】 后天星期

【例23.1】 后天星期

Description

If today is Wednesday, the day after tomorrow is Friday; if today is Saturday, the day after tomorrow is Monday. We use the numbers 1 to 7 to represent Monday to Sunday. Given a certain day, please output which day of the week it will be the day after tomorrow.

Input Format

The first line contains a positive integer D (1≤D≤7), representing a day of the week.

Output Format

Output a single line with the number representing the day of the week for the day after tomorrow.

Sample

3
5