Start 2025-01-21 00:00:00

京师海码信奥月赛(一)

End 2025-03-07 00:00:00
Contest is over.
Now 2025-10-14 01:32:32

C. 比大小

Description

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

  • 如果 a>b,那么输出 first
  • 如果 b>a,那么输出 second
  • 如果 a=b,那么输出 same

Input

输入两行。

第一行为整数 a

第二行为整数 b

Output

输出一行,即比较的结果(firstsecondsame

Examples

Input

-1
2

Output

second

Input

1234567890
987654321

Output

first

Input

999999999999999999999999999999999999999
8888888888888888888888888888888888888888

Output

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 分):没有特殊限制。

Submit

Login

Signup
Time Limit 1 second
Memory Limit 128 MB
Submit