Skip to content

余り (Remainder)

Unrated
日本語

Language

Contribute a translation
Time limit
2000 ms
Memory limit
1024 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

正の整数 \(X\) が与えられる.\(X\) を \(21\) で割った余りを出力せよ.

Constraints

  • \(1 \leqq X \leqq 100\).
  • \(X\) は整数である.

Input

入力は以下の形式で標準入力から与えられる.

\(X\)

Output

\(X\) を \(21\) で割った余りを出力せよ.

Examples

Sample input 1
50
Sample output 1
8

\(50\) を \(21\) で割った余りは \(8\) であるので,\(8\) を出力する.

Sample input 2
42
Sample output 2
0

\(X\) が \(21\) で割り切れる場合もある.このとき余りは \(0\) であるので,\(0\) を出力する.

Sample input 3
5
Sample output 3
5

\(5\) を \(21\) で割った余りは \(5\) であるので,\(5\) を出力する.

Notes

Tags

No tags yet

Source