Online Judge 846, Steps (Accepted)