in Berland n city n1 bidirectional road each road connect pair city city give roadsIn city exactly repair brigade to repair road need team base city connect road work simultaneously day both brigade repair road day repair road day but repair brigade daydetermine minimum number day need repair road the brigade change city initially