fork(2) download
  1. def nwd(a, b):
  2. while a != 0:
  3. a, b = b%a, a
  4. return b
  5. n, k = map(int, input().split())
  6. nwdLiczb = nwd(n, k)
  7. print(int(n / nwdLiczb))
Success #stdin #stdout 0.02s 9260KB
stdin
6 3
stdout
2