The algorithm of Petya#3237

The algorithm of Petya (Discussion)