#include <iostream>
using namespace std;
#include <vector>
#include <string.h>
int main( ) {
char score[ 10 ] [ 10 ] = { } ;
for ( int i = 0 ; i < 10 ; i ++ ) {
for ( int j = 0 ; j < 10 ; j++ ) {
score[ i] [ j] = 'x' ;
}
}
cout << " a b c d e f g h i j" << endl;
cout << " +-------------------+" << endl;
for ( int i = 0 ; i < 10 ; i++ ) {
cout << " " << i << "|" << score[ i] [ 0 ] ;
for ( int j = 1 ; j < 10 ; j++ ) {
cout << " " << score[ i] [ j] ;
}
cout << "|" << endl;
}
cout << " +-------------------+" << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RyaW5nLmg+CgppbnQgbWFpbigpewoKY2hhciBzY29yZVsxMF1bMTBdID0ge307CmZvciAoaW50IGkgPSAwOyBpIDwgMTA7IGkgKyspIHsKICAgIGZvciAoaW50IGogPSAwOyBqIDwgMTA7IGorKykgewogICAgICAgIHNjb3JlW2ldW2pdID0gJ3gnOwogICAgfQp9Cgpjb3V0PDwgIiAgIGEgYiBjIGQgZSBmIGcgaCBpIGoiPDwgZW5kbDsKY291dCA8PCIgICstLS0tLS0tLS0tLS0tLS0tLS0tKyI8PCBlbmRsOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgaSsrKSB7CiAgICAgICAgY291dCA8PCAiICIgPDwgaSA8PCAifCIgPDwgc2NvcmVbaV1bMF07CiAgICAgICAgZm9yIChpbnQgaiA9IDE7IGogPCAxMDsgaisrKSB7CiAgICAgICAgICAgY291dCA8PCAiICIgPDwgc2NvcmVbaV1bal07CiAgICAgICAgfQogICAgICAgIGNvdXQgPDwgInwiIDw8IGVuZGw7CiAgICB9CiAgICBjb3V0IDw8IiAgKy0tLS0tLS0tLS0tLS0tLS0tLS0rIjw8IGVuZGw7Cgp9