#include <iostream>
using namespace std;
int main() {
int i_trace_start = 0;
int i_trace_end = 10;
int j = -1;
int step = (i_trace_end > i_trace_start) ? 1 : -1;
for (int i_trace = i_trace_start; i_trace != i_trace_end; i_trace = i_trace + step, j++) {
cout << i_trace << " " << j << endl;
}
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKCgppbnQgbWFpbigpIHsKCglpbnQgaV90cmFjZV9zdGFydCA9IDA7CglpbnQgaV90cmFjZV9lbmQgPSAxMDsKCWludCBqID0gLTE7CglpbnQgc3RlcCA9IChpX3RyYWNlX2VuZCA+IGlfdHJhY2Vfc3RhcnQpID8gMSA6IC0xOwoJZm9yIChpbnQgaV90cmFjZSA9IGlfdHJhY2Vfc3RhcnQ7IGlfdHJhY2UgIT0gaV90cmFjZV9lbmQ7IGlfdHJhY2UgPSBpX3RyYWNlICsgc3RlcCwgaisrKSB7CgkJY291dCA8PCBpX3RyYWNlIDw8ICIgICIgPDwgaiA8PCBlbmRsOwoJCQoJfQoJCQoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJcmV0dXJuIDA7Cn0=