#include <bits/stdc++.h>
using namespace std;
int main()
{
int A[10][10];
int B[10][10] = {0};
cout<<"TABLICA A"<<endl;
for(int i = 0;i < 10;i++)
{
for(int j = 0;j < 10;j++)
{
A[i][j] = j;
B[j][i] = A[i][j];
cout<<A[i][j]<<" ";
}
cout<<endl;
}
cout<<endl<<endl;
cout<<"TABLICA B"<<endl;
for(int i = 0;i < 10;i++)
{
for(int j = 0;j < 10;j++)
cout<<B[i][j]<<" ";
cout<<endl;
}
return 0;
}