// Example use of nested loops
#include <iostream>
#include <cstdlib>
using namespace std;

/*
  This program outputs (x, y) integer pairs,
  satisfying the inequality |x| + |y| < 3
*/

int main() {

  int c = 1, p = 2;

  for (int x = -p; x <= p; x++) {
    for (int y = -p; y <= p; y++) {
      if( abs(x)+abs(y)<3 )
        cout << c++ << " (" << x << " ," << y << ")" << endl;
    }
  }

  return 0;
}
