#B2046. Bike or Walk?
Bike or Walk?
Bike or Walk?
In Tsinghua University campus, finding a bicycle for class or errands can be hard. Even if you manage to find one, using a bicycle involves extra tasks such as finding the bike, unlocking it, mounting and starting, as well as parking and locking it. Assume that the time taken to find, unlock, mount and start is \(27\) seconds, and the time taken to park and lock the bike is \(23\) seconds. Walking speed is \(1.2\) meters per second while biking speed is \(3.0\) meters per second.
Given a distance \(D\) (in meters), compare the total time needed to cover the distance by walking versus biking. The total walking time is \(\frac{D}{1.2}\) seconds. The total biking time is \(27 + \frac{D}{3.0} + 23 = \frac{D}{3.0} + 50\) seconds.
Output "Bike" if biking is strictly faster, "Walk" if walking is strictly faster, and "Same" if the two times are equal (within a very small tolerance).
inputFormat
The input consists of a single line containing a number \(D\) (\(0 \leq D \leq 10^6\)), representing the distance in meters.
outputFormat
Output a single word: "Bike" if biking is faster, "Walk" if walking is faster, and "Same" if both methods take equal time.
sample
50
Walk