Under construction

Still being built. Things may change

Gahui and Seoul Subway Line 2

Time limit1sMemory limit512 MB

Summary
For each query, the task compares when inner and outer circle trains leaving station a arrive at station b on the circular Line 2 and reports the faster direction.
Level

Easy1 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

Seoul Subway Line 2 has three lines. Trains on the circular line run in either the inner circle direction or the outer circle direction.

  • Main line
    • This is the circular line.
    • It has 43 stations, numbered from 201201 to 243243.
  • Sinjeongji branch (Sindorim to Kkachisan)
  • Seongsu branch (Seongsu to Sinseol-dong)

The adjacent stations for inner circle trains are as follows.

  • The station adjacent to station 243243 is station 201201.
  • The station adjacent to station ii is station i+1i+1. (where 201≤i≤242201 \le i \le 242)

The adjacent stations for outer circle trains are as follows.

  • The station adjacent to station 201201 is station 243243.
  • The station adjacent to station ii is station i−1i-1. (where 202≤i≤243202 \le i \le 243)

Gahui wants to travel from station aa to station bb using only Line 2. An inner circle train and an outer circle train have just arrived at station aa at the same time. Which direction is faster? Tell Gahui which direction's train gets there sooner. The travel time between adjacent stations and the dwell time at each station are the same for all stations, and every train departs from and arrives at every station exactly on schedule.

Input

The first line contains the number of queries QQ.

Each of the next QQ lines contains aa and bb, separated by a space.

Output

Print the answer to each query on its own line.

  • If the inner circle train is faster, print Inner circle line.
  • If the outer circle train is faster, print Outer circle line.
  • If both take the same time, print Same.

Constraints

  • 2≤Q≤1002 \le Q \le 100
  • 201≤a≤243201 \le a \le 243
  • 201≤b≤243201 \le b \le 243
  • a≠ba \ne b
  • Trains on the main line do not pass through any other line.

Examples2

  1. Example 1

    Input
    2
    201 202
    202 201
    
    Expected output
    Inner circle line
    Outer circle line
    
  2. Example 2

    Input
    2
    216 228
    228 216
    
    Expected output
    Inner circle line
    Outer circle line