fork download
  1. import math
  2.  
  3. a, b = input().split()
  4. a = int(a)
  5. b = int(b)
  6.  
  7. print(math.gcd(a, b))
Success #stdin #stdout 0.03s 9820KB
stdin
8 12
stdout
4