Public transit at the Information Science Building
InterviewTime limit2sMemory limit1024 MB
Given walking time N, bus arrival A, and train arrival B, decide whether the bus or the subway can be boarded first, or if they tie.
- Level
Easy1 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
The Information Science Building of Soongsil University is far from Soongsil University Station. Instead, a bus stop named Soongsil Univ. Annex Front is right in front of it.
Chansol, an undergraduate researcher, is heading home by public transit after a late night at the lab. Luckily, the last train has not left yet. Specifically, the last bus home arrives at the Soongsil Univ. Annex Front stop in minutes, and the last train home arrives at Soongsil University Station in minutes.
Chansol is standing at the bus stop now. But Chansol realized that walking to the subway station and riding the subway might be faster than waiting for the bus. Walking to the subway platform at Soongsil University Station takes minutes. Tell Chansol which of the bus and the subway can be boarded first, so the tired researcher can rest.
Input
The first line contains , , and , separated by spaces.
Output
Print Bus if the bus can be boarded earlier, Subway if the subway can be boarded earlier, and Anything if the boarding times of the bus and the subway are the same.
Constraints
- All input numbers are integers.