Мухутдинов Дмитрий, 2538

you can unroll 2 loops to get more performance and get rid of ugly goto