Two natural numbers n and m are given. If one of them is evenly divisible by the other

Two natural numbers n and m are given. If one of them is evenly divisible by the other, print 1, otherwise print any other integer. It needs to be done in python.

The first option for completing the task:
var n, m, g: integer;
begin
readln (n, m);
g: = (n mod m) * (m mod n) + 1;
writeln (g);
end.
Second option:
begin
var m, n: integer;
Write (‘Enter two natural numbers separated by a space:’);
Read (n, m);
Writeln (Ord ((n mod m = 0) or (m mod n = 0)));
end.
Third option:
program num;
uses crt;
var n, m: integer;
begin
readln (n, m);
writeln ((m mod n) + 1);
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.