#154. closeFar

closeFar

Background

Description

Given three ints, a b c, return true if one of b or c is "close" (differing from a by at most 1), while the other is "far", differing from both other values by 2 or more. Note: Math.abs(num) computes the absolute value of a number.

Format

Input

Output

Samples

1 2 10
true
1 2 3
false
4 1 3
true

Limitation

1s, 1024KiB for each test case.