electicode
HomeCoursesResourcesProblemsNational OlympiadContestsLeaderboard
...

|a - b|

Time Limit: 1000msMemory Limit: 256MB
View Submissions

Problem Description

Two numbers aaa and bbb are given. Output the absolute value of their difference ∣a−b∣|a - b|∣a−b∣.

Input Format

The input data contain two integers aaa and bbb (1≤a,b≤1018)(1 \le a, b \le 10^{18})(1≤a,b≤1018).

Output Format

Output the answer to the problem.

Examples

Example 1
Input
6227 4202
Output
2025
Example 2
Input
5202 7227
Output
2025
Example 3
Input
1234567890 9876543210
Output
8641975320

© 2026 Electicode. All rights reserved.