P26367 [AtCoder] Dice
入门
题目描述

Problem Description

There is one dice. This dice has numbers from 1 to 6 written on it, one on each face, and the sum of the numbers on opposite faces is 7.

Now, it is known that the number on the top face of the dice is $ A $.

Output the number written on the bottom face, which is opposite to the top face.

Input Format

The input is given from the standard input in the following format:

$ A $

  • The first line contains one integer $A\ (1\ ≦\ A\ ≦\ 6)$, representing the number on the top face of the dice.

Output Format

Output the number on the bottom face of the dice in one line. Make sure to include a newline at the end of the output.

Sample Input and Output

Sample Input #1

6

Sample Output #1

1

Sample Input #2

3

Sample Output #2

4

Notes/Hints

Sample Explanation 1

The number opposite to 6 is 1.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
6
样例输出
1