C++#include<bits/stdc++.h>
using namespace std;
string s0[5]={
".....",
".***.",
".***.",
".***.",
"....."
};
string s1[5]={
"****.",
"****.",
"****.",
"****.",
"****."
};
string s2[5]={
".....",
"****.",
".....",
".****",
"....."
};
string s3[5]={
".....",
"****.",
".....",
"****.",
"....."
};
string s, ans[5];
int main(){
cin >> s;
for(int i = 0; i < s.size(); i++)
{
for(int j = 0; j < 5; j++)
{
switch(s[i])
{
case '0':
ans[j] += s0[j]; break;
case '1':
ans[j] += s1[j]; break;
case '2':
ans[j] += s2[j]; break;
case '3':
ans[j] += s3[j]; break;
}
}
}
for(int i = 0; i < 5; i++) cout << ans[i] << "\n";
return 0;
}