#include <iostream>
using namespace std;
bool checkArray(int arr[]) {
bool found[9] = {false};
for (int i = 0; i < 9; i++) {
if (arr[i] < 1 || arr[i] > 9) return false;
if (found[arr[i] - 1]) return false;
found[arr[i] - 1] = true;
}
return true;
}
bool checkSubgrids(int grid[9][9]) {
for (int row = 0; row < 9; row += 3) {
for (int col = 0; col < 9; col += 3) {
int subgrid[9], idx = 0;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
subgrid[idx++] = grid[row + i][col + j];
}
}
if (!checkArray(subgrid)) return false;
}
}
return true;
}
int main() {
int sudoku[9][9];
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
cin >> sudoku[i][j];
}
}
for (int i = 0; i < 9; i++) {
if (!checkArray(sudoku[i])) {
cout << "incorect" << "\n";
return 0;
}
}
for (int j = 0; j < 9; j++) {
int column[9];
for (int i = 0; i < 9; i++) {
column[i] = sudoku[i][j];
}
if (!checkArray(column)) {
cout << "incorect" << "\n";
return 0;
}
}
if (!checkSubgrids(sudoku)) {
cout << "incorect" << "\n";
return 0;
}
cout << "corect" << "\n";
return 0;
}