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

long long a;
long long v, w, x, y;

int main() {
	line1: printf("Provide the inputs x and y:");
               scanf("%lld", &x);
	       scanf("%lld", &y);
               printf("Inputs x and y provided are %lld and %lld.\n",x,y);
               a = 1;
	
	line2: if (x < 0) { x = -x; a = -a; }
	
	line3: if (y < 0) { y = -y; a = -a; }
	
	line4: if (y < x) { v = x; x = y; y = v; }
		
	line5: v = 1; w = 0; x = x+x; x = x + 1;
	
	line6: if (v > x) goto line7; v = v+v; goto line6;
	
	line7: x = x+x; if (v == x) goto line8;
	 	w = w+w;
		if (x > v) { w = w + y; x = x - v; }
		goto line7;
	
	line8: if (a == -1) w = -w;
		printf("Output w: %lld.\n", w); }
