Zadacha4 : event of cursor.