1691: T3周赛[202401]比大小

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:2

Description

输入两个大整数,$a,b$,请输出他们谁大谁小。 

- 如果 $a>b$,那么输出 `first` 

- 如果 $b>a$,那么输出 `second` 

- 如果 $a=b$,那么输出 `same`

Input

输入两行。 

第一行为正整数 $a$。 

第二行为正整数 $b$。

Output

输出一行,即比较的结果(`first`,`second` 或 `same`)

Sample Input Copy

-1
2

Sample Output Copy

second

HINT

# 数据规模与约定 

对于 $100\%$ 的数据,$-10^{100} \le a,b \le 10^{100}$。保证给定的数符合正常数的书写规范。 

- 子任务 1(30 分):$-10^9\le a,b\le 10^9$。 

- 子任务 2(30 分):$0\le a,b\le 10^{100}$。 

- 子任务 3(40 分):没有特殊限制。

Source/Category