import java.util.Scanner;
public class UnixBannerCommand {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String text = input.nextLine();
int charSize = 1;
char letter;
int[] asciiCodes = new int[text.length()];
// Convert text to ASCII codes
for (int i = 0; i < text.length(); i++) {
letter = text.charAt(i);
asciiCodes[i] = (int) letter;
}
int letterSize = 7;
int asciiNum = 32;
int lineCount = 0;
int letterCount = 0;
int counter = 0;
boolean letterFound = false;
String[] result = new String[letterSize];
for (int i = 0; i < asciiCodes.length; i++) {
for (int row = 0; row < letters.length; row++) {
if (letterCount == 8) {
row += letterSize - 1;
letterCount = 0;
counter = 0;
}
while ((!letterFound) && (letterCount < 8)) {
if (asciiCodes[i] == asciiNum)
letterFound = true;
else {
asciiNum++;
counter += letterSize;
letterCount++;
}
}
if ((letterFound) && (lineCount < 7)) {
if (i > 0) {
result[lineCount] = result[lineCount] + letters[row].substring(counter, counter + letterSize);
} else {
result[lineCount] = letters[row].substring(counter, counter + letterSize);
}
lineCount++;
}
}
counter = 0;
lineCount = 0;
letterCount = 0;
asciiNum = 32;
letterFound = false;
}
for (int i = 0; i < result.length; i++) {
System.out.println(result[i]);
}
}
static String[] letters = {
" ### ### ### # # ##### ### # ## ### ",
" ### ### ### # # # # ## # # # # ### ",
" ### # # ######## # ### # ## # ",
" # # # ##### # ### # ",
" ####### # # # #### # # ",
" ### # # # # # # # ## # ",
" ### # # ##### # ### #### # ",
" ## ## #",
" # # # # # # ",
" # # # # # # ",
" # # ####### ##### ### ##### # ",
" # # # # # ### ### # ",
" # # # # # # ### # ",
" ## ## # ### # ",
" ### # ##### ##### # ####### ##### #######",
" # # ## # ## ## # # # ## # ",
"# # # # # ## # # # # ",
"# # # ##### ##### # # ###### ###### # ",
"# # # # ######## ## # # ",
" # # # # # # # # ## # # ",
" ### ##### ####### ##### # ##### ##### # ",
" ##### ##### # ### # # ##### ",
"# ## # ### ### # # # #",
"# ## # # # ##### # #",
" ##### ###### ### # # ## ",
"# # # # ### # ##### # # ",
"# ## # ### # # # ",
" ##### ##### # # # # # ",
" ##### # ###### ##### ###### ############## ##### ",
"# # # # # ## ## ## # # #",
"# ### # # # # ## # ## # # ",
"# # # ## ####### # # ###### ##### # ####",
"# #### ######## ## # ## # # #",
"# # ## ## ## ## # # #",
" ##### # ####### ##### ###### ######## ##### ",
"# # ### ## # # # ## ########",
"# # # ## # # ## #### ## #",
"# # # ## # # # # # ## # ## #",
"####### # #### # # # ## # ## #",
"# # # # ## # # # ## # ## #",
"# # # # ## # # # ## ### #",
"# # ### ##### # # ######## ## ########",
"###### ##### ###### ##### ######## ## ## #",
"# ## ## ## # # # ## ## # #",
"# ## ## ## # # ## ## # #",
"###### # ####### ##### # # ## ## # #",
"# # # ## # # # # # # # # # #",
"# # # # # # # # # # # # # # #",
"# #### ## # ##### # ##### # ## ## ",
"# ## ######## ##### # ##### # ",
" # # # # # # # # # # ",
" # # # # # # # # # # ",
" # # # # # # ",
" # # # # # # # ",
" # # # # # # # ",
"# # # ####### ##### # ##### #######",
" ### ",
" ### ## ##### #### ##### ###### ###### #### ",
" # # # # # # # # # # # # #",
" ###### # # # # # # # # ###",
" # # # ##### # # # ##### ##### # ",
" # # # # # # # # # # # #",
" # # ##### #### ##### ###### # #### ",
" ",
" # # # # # # # # # # # #### ",
" # # # # # # # ## ## ## # # #",
" ###### # # #### # # ## # # # # # #",
" # # # # # # # # # # # # # #",
" # # # # # # # # # # # ## # #",
" # # # #### # # ###### # # # # #### ",
" ",
" ##### #### ##### #### ##### # # # # # #",
" # # # # # # # # # # # # # #",
" # # # # # # #### # # # # # # #",
" ##### # # # ##### # # # # # # # ## #",
" # # # # # # # # # # # # ## ##",
" # ### # # # #### # #### ## # #",
" ### # ### ## # # # #",
" # # # # ###### # # # # # # # # # ",
" # # # # # # # # ## # # # #",
" ## # # ## ## # # # ",
" ## # # # # # # # # #",
" # # # # # # # # # # ",
" # # # ###### ### # ### # # # #"
};
}