The shortest distance (#523) - Azerbaijan Computing Olympiad