Algoritm of "TEAM"