Cezar Guimarães's submission of Train Partner | CodeChef