#include <iostream>
#include <string.h>
using namespace std;
int main()
{
char s1[21],s2[21]="",s3[4]="",s4[21]="",*p;
cin.get(s1,21);
strcpy(s2,s1);
p=strtok(s1," ");
p=strtok(NULL," ");
s3[0]=p[0];
s3[1]='.';
s3[2]=' ';
p=strtok(s2," ");
strcat(s4,s3);
strcat(s4,p);
cout<<s4;
return 0;
}