Four-digit without middle (#550) - Azerbaijan Computing Olympiad