#CCBCMCHIN0000014. Điểm đúng nửa khoảng (Half-open Interval Membership)

Điểm đúng nửa khoảng (Half-open Interval Membership)

Half-open Interval Membership

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given L<RL<R and integer xx, determine whether xx is in the half-open interval [L,R)[L,R): LL is included and RR is excluded.

Input

One line containing integers L,R,xL,R,x.

Output

Print IN if L≤x<RL\le x<R; otherwise print OUT.

Subtasks

  • Subtask 1 (20 points): −20≤L,R≤20-20\le L,R\le 20, −20≤x≤20-20\le x\le 20; L<RL<R.
  • Subtask 2 (30 points): −1000≤L,R≤1000-1000\le L,R\le 1000, −2000≤x≤2000-2000\le x\le 2000; L<RL<R.
  • Subtask 3 (50 points): −1000000000≤L,R≤1000000000-1000000000\le L,R\le 1000000000, −1000000000≤x≤1000000000-1000000000\le x\le 1000000000; L<RL<R.

Examples

Example 1

Input

1 5 5

Output

OUT

Explanation

The input gives 1, 5, 5. 1 <= 5 is True, and 5 < 5 is False. Therefore the required output is ['OUT'].

Example 2

Input

1 5 1

Output

IN

Explanation

The input gives 1, 5, 1. 1 <= 1 is True, and 1 < 5 is True. Therefore the required output is ['IN'].