Fedor Popov's submission of Profitable Paths | CodeChef