Program x2; var n:longint; begin Write('Введите n, n = '); Readln(n); While n mod 2 = 0 do n:= n div 2; If n=1 then Write('YES') else write('NO'); end.