a=4
b=8
def nwd(a,b):
while a!=b:
if a>b:
a=a-b
elif a<b:
b=b-a
return a
print(nwd(a,b))
print(b, a/a)
print('=','--')
print(b/a)
YT00CmI9OAoKZGVmIG53ZChhLGIpOgoJd2hpbGUgYSE9YjoKCQlpZiBhPmI6CgkJCWE9YS1iCgkJZWxpZiBhPGI6CgkJCWI9Yi1hCglyZXR1cm4gYQpwcmludChud2QoYSxiKSkKcHJpbnQoYiwgYS9hKQpwcmludCgnPScsJy0tJykKcHJpbnQoYi9hKQo=