All problems

Problem 759

Subtract Two Numbers

Easy · 10 pts · Math, Basics

Problem

Read two integers A and B and print A - B. This is one of the first programs everyone writes: read the input, do one arithmetic operation, and print the result. The values can be negative, and the result can be up to about 2 × 10^9 in size, so use a 64-bit integer type (long long in C++, long in Java) to be safe.

Input

A single line with two integers A and B.

Output

Print A - B.

Constraints

-10^9 <= A, B <= 10^9

Example input

10 3

Example output

7

Explanation

For A = 10 and B = 3, the difference is 10 - 3 = 7. For A = 3 and B = 10 it would be -7.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Longest Bitonic Subsequence Next: Multiply Two Numbers