#include <stdio.h>
int main(){
char* p = NULL;
char s[100] ;
int i = 0;
scanf("%s",s);
p = s;
printf("%s
",p);
char a ;
int count = 0 ;
while((a = *p++) !=' '){
if(a ==':'){
count++;
}
}
p = s;
int count1 = 0;
while((a = *p++)!=' '){
i++;
if(a == ':'){
count1++;
int j ;
for(j = -i; j < -1 ; ++j){
printf("%c",p[j]);
}
printf("
");
if(count == count1){
printf("%s
",p);
return 0;
}
i = 0;
}
}
}