def pgcd(a, b): while b != 0: a, b = b, a%b return a print(pgcd(24,32))