Codeforces Round #101 Problem D -- Take-off Ramps