ExtendedMainRound : algo in c++ (first version)