This page is still under construction.

Parts of this page are still being built. What you see may change.

Remainder

Interview

Time limit2sMemory limit1024 MB

Summary
Read a positive integer X between 1 and 100 and print the remainder when X is divided by 21.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

A positive integer X is given. Print the remainder when X is divided by 21.

Input

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

X

Output

Print the remainder when X is divided by 21.

Constraints

  • 1 ≦ X ≦ 100.
  • X is an integer.

Examples3

  1. Example 1

    Input
    50
    
    Expected output
    8
    
  2. Example 2

    Input
    42
    
    Expected output
    0
    
  3. Example 3

    Input
    5
    
    Expected output
    5