#include
int main() {
int M,N;
std::cin>>N;
std::cin>>M;
if(M>1&&M<10){
if(N>1&&N<10){
int arr[M][N]={0};
int i,j;
for(i=0;i<=N;i++){
for(j=0;j<=M;j++){
std::cin>>arr[j][i];
}
}
for(i=0;i<=N;i++){
for(j=0;j<=M;j++){
std::cout<<arr[j][i]<<",";
}
}
std::cout<<"END";
}}return 0;
}
answer is wrong why