#include <iostream>
using namespace std;
int main(){const int N = 21;//几行几列 int g[N][N] = {};int n = 0;cin >> n;for (int i = 1; i <= n; i++){for (int j = 1; j <= n; j++){// 输入到几行几列 cin >> g[i][j];if (i == j || i + j == n + 1){//如果是这种情况就+10 g[i][j] += 10;}}}// 最后将他遍历出来 for (int i = 1; i <= n; i++){for (int j = 1; j <= n; j++){cout << g[i][j]<<' ';}cout << endl;}return 0;
}