#include <bits/stdc++.h>
using namespace std;

long long a;
long long u, x, y, z;

int main() {
	line1: printf("Provides inputs y,z for y/z: ");
               scanf("%lld", &y); scanf("%lld", &z);
               printf("Input y: %lld, Input z: %lld, ",y,z);
               x = 0;
	
	line2: if (z < 0) { z = -z; y = -y; }
               if (z == 0) { goto line6; }
               if (y < 0) { a = -1; y = -y; } else { a = 1; }
               u = z;
	
	line3: if (u >= y) { goto line4; } u = u+u; goto line3;
	
	line4: if (y >= u) { y = y-u; x = x+1; }
               if (u == z) { goto line5; }
               x = x+x; y = y+y; z = z+z; goto line4;
		
	line5: if (a == -1) { x = -x; if (y > 0) { x = x-1; } }
	
	line6: printf("Output x: %lld.\n", x); }
