/*
#include <stdio.h>
#include <stdlib.h>
char a[1000000],b[10000000];
int main()
{
int i,c,top=0;
scanf("%s", a);
for(i=0;a[i]!='\0';i++)
{
c=i;
}
for(i=c;i>=0;i--)
{
b[top]=a[i];
top++;
}
for(i=0;i<=c;i++)
{
printf("%c",b[i]);
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int top=0,i,o,y,p,v;
char a[105][105] = {0},b[1000][1000];
scanf("%d",&y);
for(i=0;i<y;i++)
{
scanf("%s", a[i]);
}
for(i=0;i<y;i++)
{
for(p=0;a[i][p]!='\0';p++)
{
v=p;
}
for(o=v;o>=0;o--)
{
b[i][top]=a[i][o];
top++;
}
for(p=0;p<=v;p++)
{
printf("%c",b[i][p]);
}
printf("\n");
top=0;
}
}
*/
#include <stdio.h>
int main()
{
int i,o=0,top=0;
char d[222222],a[1000],b[22][50]={"Paint.Picture","Word.Document.8","word.Document.12","htmfile","htmfile","Hwp.Document.96","Hwp.Document.hwpx.96","Hwp.Document.hwt.96","jpegfile","jpegfile","jpegfile","PowerPoint.Show.8","Powerpoint.Show.12","powerpointxmlfile"};
char c[22][20]={".did",".doc",".docx",".htm",".html",".hwp",".hwpx",".hwt",".jpe",".jpeg",".jpg",".ppt",".pptx",".pptxml"};
scanf("%s",a);
for(i=0;i<=strlen(a)-1;i++)
{
if(a[i]=='.')
{
}
if(o==1)
{
}
}
}
`1e