Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/raqamlar-farqi

Difference of digits

Easy 1000 ms 64 MB 12%
Share

A two-digit positive integer $n$ is given. Find the result of subtracting its second digit from its first digit.

The second digit is subtracted from the first

Input

One two-digit positive integer $n$.

Output

One integer — the difference of the digits (it may be negative).

Note

$10 \le n \le 99$

Examples

Input #1
42
Output #1
2
Input #2
19
Output #2
-8

Sign in to submit a solution

Signing up is free and takes a minute.