public static void printNums(int row){
int[][] d = new int[row][3];
d[0][0] = 1;
d[0][1] = 0;
d[0][2] = 0;
for(int i=1;id[i][0] = d[i-1][0]+1;
d[i][1] = d[i][0] -1;
d[i][2] = d[i][1] -1;
}
for (int i = 0; i < d.length; i++) {
System.out.println(d[i][0]+""+d[i][1]+""+d[i][2]);
}
}