#include <stdio.h>
#include <iostream>
#include <string.h>
using namespace std;
void main()
{
char *u,r[200],r_out[200];
int k(0),i(0);
puts("Vvedit ryadok:\n");
gets(r);
u=strtok(r," \0");
while(u!=NULL)
{
i++;
r_out[k]=u[0];
k++;
r_out[k]=u[1];
k++;
u=strtok(NULL," \0");
}
for(int j=0;j<i*2;j++)
{
cout<<r_out[j];
}
cout<<endl;
}