SHAMIM9 - Antik the Numerologist

no tags 

Siam Hasan Antik is the great Numerologist in Sylhet International University . One day he wants to work with the last digit of those numbers that are multiplied by 9.

You need to help him.

Input

There are only input N (2<N<1040 ).

Output

print only last digit of 9*N.

Example

Input:
3
Output:
7

Input:

99
Output:
1


Added by:Ruhul
Date:2019-08-05
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:C C++ 4.3.2 CPP14 PYTHON3