43. Score Difference

Time Limit: 1 seconds

Memory Limit: 128 MB

Rating: 800

Problem Statement

In a game of Pong, there are two players, player $A$ and player $B$. At the end of the game, player $A$ will have score $n$ and player $B$ will have score $m$. The winning player wants to know how much better he / she is relative to the other player. Hence, he / she wants to know the score difference between the two players. Given integers $n$ and $m$, determine the score difference. The score difference must be a positive integer.

Input

The first two lines each contain $n$ and $m$ in that order. $(1 \le n, m \le 10^{18}, n \neq m)$

Output

Output the answer described in the Problem Statement.

Sample Cases
Sample Input 1:
6
8

Sample Output 1:
2


Sample Input 2:
32
18

Sample Output 2:
14
Explanation

Not available for this problem.

Sources

KL Coding Cup March 2023 > Pong > Problem 1

Submit | Back