← Problem book: C Lesson 20 of 96 · 10 XP

Does the triangle exist

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given three segment lengths — positive integers. Print YES if they can form a triangle, otherwise NO. A triangle exists when each side is less than the sum of the other two.

Example

Input:

3 4 5

Output:

YES

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.