from decimal import Decimal a=input ().split() A=int(a[0]) B=int(a[1]) x=Decimal ('A')/Decimal('B') if x%1==0: print(x) else: print(0)