begin
var n := ReadInteger('n=');
var (n1, n2, n3) := (n div 100, n div 10 mod 10, n mod 10);
Println(100 * n2 + 10 * n1 + n3)
end.
begin
var n := ReadInteger('n=');
var (n1, n2, n3) := (n div 100, n div 10 mod 10, n mod 10);
Println(100 * n2 + 10 * n1 + n3)
end.
Примерn= 627267