#include <iostream>
#include <cmath>
#include <cctype>
using namespace std;
void printCharacter(char character) {
for (int y = 0; y < 10; y++)
{
for (int x = 1; x < 10; x++)
{
if (toupper(character) == 'R' && ((x <= 2) || (y == 0 && x <= 7) || (y > 0 && y < 4 && x > 6 && x < 10 - abs(2 - y)) || (y == 4 && (x > 5 & x < 8)) || ((x + 2 == y || x + 1 == y || x == y) && y > 4))) cout << "R";
else if (toupper(character) == 'O' && (((y > 0 && y < 9) && (x < 3 || x > 7)) || ((x > 1 && x < 9) && (y < 2 || y > 7)))) cout << "O";
else if (toupper(character) == 'I' && ((x > 3 && x < 7) || ((y == 0 || y == 9) && (x > 1 && x < 9)))) cout << "I";
else if (toupper(character) == 'H' && ((x < 3 || x > 7) || y == 4 || y == 5)) cout << "H";
else if (toupper(character) == 'A' && (((x < 3 || x > 7) && y > 4) || (x == 5 && y == 0) || (y > 0 && y < 5 && ((x > 4 - y && x < 7 - y) || (x > 3 + y && x < 6 + y)) || (y > 4 && y < 7)))) cout << "A";
else if (toupper(character) == 'N' && ((x < 3 || x > 7) || (x > y - 1 && x < y + 2))) cout << "N";
else cout << " ";
}
cout << endl;
}
cout << endl;
}
int main() {
printCharacter('R');
printCharacter('O');
printCharacter('I');
printCharacter('H');
printCharacter('A');
printCharacter('N');
return 0;
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}