Program hotrotinhoc;
var M,N,TG,TG1: integer;
begin
write('M='); readln(M); TG:=M;
write('N='); readln(N); TG1:=N;
If N>M then
begin
N:=TG+TG1;
M:=N-M;
end;
If N<M then
Begin
M:=TG+TG1;
N:=M-N;
end;
Writeln('Gia tri moi cua M=',M);
write('Gia tri moi cua N=',N);
readln
end.