r=input().split() a=r[0] b=r[1] c=r[2] d=r[3] a=int(a) b=int(b) c=int(c) d=int(d) e=a*10+b f=c*10+d print(int(f/e))