|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||128 MB||0||0||0||0.000%|
During the second congress of Paranoiac Informatics Society (called simply a meeting), all members took their places round a round table. One of the members posed the following question: "What is the number of ways we can shake our hands without leaving our places? Every participant can shake hand of one person and this person must be his/her neighbour."
Since the congress participants are theoreticians, they asked you to write a program, which computes this number of ways. The participants hate big numbers, so they need only the last digit of the result.
Write a program, which:
The first and only line of the standard input contains one integer n (3 ≤ n ≤ 2 000 000 000), denoting the number of members.
The first and only line of the standard output should contain one digit, i.e. the last digit of the number of ways the participants can shake hands.
All possible ways of shaking hands.