#include <stdio.h> int main() { int a, b, c, d; scanf("%d%d%d%d",&a,&b,&c,&d); int e, f, s; e=10*a+b; f=10*c+d; s=f/e; printf("%d",s); return 0; }