threeSalgorythm
