#include<cstdio>
#include<string>
#include<iostream>
using namespace std;
int main()
{
string s;
char c;
getline(cin,s);
cout<<s<<"*****";
c = getchar();
printf("###%c$$$",c);
}
#include<cstdio>
#include<string>
#include<iostream>
using namespace std;
int main()
{
string s;
char c;
getline(cin,s);
cout<<s<<"*****";
c = getchar();
printf("###%c$$$",c);
}