//Andrew Cove

void print_int(int i) {}
void print_newline(void) {}

void main(void) {
  int a;
  int b;
  int c;
  int d;

  int i;
  int j;

  int temp0;
  int temp1;
  int temp2;
  int temp3;
  int temp4;

  temp0 = 0;
  temp1 = 0;
  temp2 = 0;
  temp3 = 0;

  temp4 = 1;

  a = 2;
  b = 4;
  c = 8;
  d = 16;

  for ( i = 0; i < (a * b * c * d) * (a*b*c*d) ; i += 1){
    temp0 += (a*b) + (c * d);
    temp1 += (c * d) + a + b;

    for (j = 0; j < temp4; j += 1){
      temp2 += temp0 + temp1;
      temp3 += temp2 * temp0 * temp1 + a + b + c + d;
      temp4 = (a*b) + (c*d); 
    }
  }

  print_int(temp0);
  print_newline();
  print_int(temp1);
  print_newline();
  print_int(temp2);
  print_newline();
  print_int(temp3);
  print_newline();
}
