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

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

int main() {
        line1: printf("Provide the input x: ");
               scanf("%lld", &x);
	       printf("Input x provided is %lld.\nOutput, if any, in z",x);
               if (x < 0) {x = -x; }
               y = 1; z = 1; x = x+x; x = x+1; u = 0;
		
	line2: if (y > x) { goto line3; } y = y+y; goto line2;
	
	line3: if (y == x) { goto line4; }
               if (x > y) { u = u+z; x = x-y; }
               x = x+x; z = z+z; goto line3;
	
	line4: z = 1; x = u+u;
		
	line5: if (x >= y) { printf(", z: %lld",z); x=x-y; }
               z = z+z; x = x+x; if (x > 0) { goto line5; }
               printf(".\n"); }
