fork download
  1. a, b = map(int, input().split())
  2. while b != 0:
  3. a, b = b, a % b
  4. print(a)
Success #stdin #stdout 0.08s 14176KB
stdin
6 9
stdout
3