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

~/algor $ cat problems/uchburchakning-uchinchi-burchagi

Third angle of a triangle

Easy 1000 ms 64 MB 6%
Share

Two angles of a triangle, $\alpha$ and $\beta$ (in degrees), are given. Find the third angle $\gamma$. The angles of a triangle add up to $180$ degrees:

$$\gamma = 180 - \alpha - \beta$$

A triangle: two angles alpha and beta are given, the third angle gamma is to be found

Input

One line with two positive integers: $\alpha$ and $\beta$.

Output

One positive integer — $\gamma$.

Note

$1 \le \alpha, \beta \le 178$
$\alpha + \beta \le 179$

Examples

Input #1
60 70
Output #1
50
Input #2
90 45
Output #2
45

Sign in to submit a solution

Signing up is free and takes a minute.