SDE Path

Last Digit of a Number

Easy

Last Digit of a Number

Read a non-negative integer and print its ones digit using the modulo operator.

Input format

A single line with one non-negative integer N.

Output format

Print the last (ones) digit of N, which is N % 10.

Constraints

  • Values fit in a 64-bit signed integer
  • Trailing whitespace and a trailing newline are ignored by the judge

Read from stdin, write to stdout. Sample cases below show the exact format.

Sample cases

Example 1
Input
47
Expected output
7
Example 2
Input
130
Expected output
0