srm 622 div1 A - nice floyd marshal/graph