можно посмотреть здесь Zadacha_Tramvai.doc