#include <iostream>
#include <string>

using namespace std;

int main()
{
  string str1 = "My name is ";
  string str2 = "I am a ";
  string str4;
  string str3;
  cin>> str3;
  str1.insert(11,str3);
  cout<< str1<<endl;
  cin >> str4;
  str2.insert(7, str4);
  cout << str2<< endl;
  str1.append(", "+str2);
  cout << str1<<endl;
  return 0;
}