#include <iostream>
#include <string>
using namespace std;
void main()
{
string str;
cout << "Introduceti numele si prenumele (max 20 caractere):\n";
getline(cin, str);
unsigned pos = str.find(" ");
string str2 = str.substr(pos);
cout << str[0] << ". "<< str2 <<"\n";
}