import math a, b = input().split()a = int(a)b = int(b) print(math.gcd(a, b))
8 12
4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!