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

~/algor $ cat problems/funksiya-uchburchak-mavjudmi

Is it a triangle

Easy 1000 ms 128 MB 23%
Share

Write a function IsTriangle(a, b, c) that returns true if a triangle with sides $a$, $b$ and $c$ exists and false otherwise. A triangle exists if the sum of any two sides is greater than the third side.

Example 1: IsTriangle(3, 4, 5) → true

Example 2: IsTriangle(1, 2, 3) → false — $1 + 2 = 3$, no triangle is formed.

Write only the function body.

A triangle with sides a, b and c; the function returns true

Input

One line with three positive integers $a$, $b$ and $c$ — the arguments of the function.

Output

The value returned by the function: true or false.

Note

$1 \le a, b, c \le 10^{9}$

Examples

Input #1
3 4 5
Output #1
true
Input #2
1 2 3
Output #2
false

Sign in to submit a solution

Signing up is free and takes a minute.