import java.util.Scanner;
import java.util.ArrayList;
public class Main{
public static void main(String[] args){
char[] ch = new Scanner(System.in).nextLine().toCharArray();
ArrayList al = new ArrayList();
for(int i=0;i<ch.length;i++){
if(' ' != ch[i]){
al.add(ch[i]);
}
}
for(int i=0;i<al.size();i++){
System.out.print(al.get(i));
}
}
}
#include<stdio.h>
#include<string.h>
void MyStrcat(char dstStr[], char srcStr[]);
int main()
{
char s1[200], s2[100];
while(scanf("%s %s", s1, s2) == 2){
MyStrcat(s1, s2);
printf("%s\n", s1);
}
return 0;
}
void MyStrcat(char dstStr[], char srcStr[])
{
int len1, len2;
len1 = strlen(dstStr);
len2 = strlen(srcStr);
for(int i = 0; i < len2; ++i)
dstStr[len1++] = srcStr[i];
dstStr[len1] = '\0';
}
#include<bits/stdc++.h>
using namespace std;
int main(){
char ch1[300],ch2[300];
while(cin>>ch1>>ch2){
int len1=strlen(ch1),len2=strlen(ch2),len=len1+len2;
char* ch=new char[len];
for(int i=0;i<len1;i++)
ch[i]=ch1[i];
for(int i=len1;i<len;i++)
ch[i]=ch2[i-len1];
cout<<ch<<endl;
}
} #include<stdio.h>
char* MyStracat(char dstStr[],char srcStr[]){
char result[10000];
int index=0;
int i=0;
while(dstStr[i]!='\0'){
result[index]=dstStr[i];
index++;
i++;
}
int j=0;
while(srcStr[j]!='\0'){
result[index]=srcStr[j];
j++;
index++;
}
result[index]='\0';
return result;
}
int main(){
char str1[1000],str2[1000];
while(scanf("%s %s",str1,str2)!=EOF){
char* mystr=MyStracat(str1,str2);
int i=0;
while(mystr[i]!='\0'){
printf("%c",mystr[i]);
i++;
}
printf("\n");
}
}
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
char str[1000];
while (gets(str)) {
int len = strlen(str);
for (int i = 0; i < len; i++)
if (str[i] != ' ')
printf("%c", str[i]);
printf("\n");
}
return 0;
}
/*想直接用getchar,但是不知道咋退出循环了。。。*/ using namespace std;
int main(){
char str1[500],str2[500];
char str3[1000];
while(cin>>str1>>str2){
int l1=0,l2=0,l3=0;
while(str1[l1]!='\0')
str3[l3++]=str1[l1++];
while(str2[l2]!='\0')
str3[l3++]=str2[l2++];
for(int i=0;i<l3;i++)
cout<<str3[i];
cout<<endl;
}
return 0;
}
#include<stdio.h>
int main (){//the shorter,the better.
char s1[100],s2[100];
for(;~scanf("%s%s",s1,s2)&&printf("%s%s\n",s1,s2););
}
#include<iostream>
using namespace std;
int main()
{
string str1,str2;
while(cin>>str1>>str2)
{
cout<<str1<<str2<<endl;
}
}
#include <stdio.h>
#include<string.h>
#define MAX 100
int main() {
char a[MAX], b[MAX];
while (scanf("%s %s", a, b) != EOF) {
printf("%s%s\n",a,b);
}
return 0;
} while True: try: s= input() s = list(s) for i in range(len(s)): if s[i] == ' ': break del s[i] s = ''.join(s) print(s) except: break
#include <stdio.h>
int my_strlen(char *str) {
char *p = str;
while ( *str++ );
return str - p - 1;
}
char *MyStrcat(char *dstStr, char *srcStr) {
char *temp = dstStr;
while ( *dstStr++);
dstStr--; // 因为上一行代码,先判断*dstStr为'\0'后, 再dstStr++,需要减1
while ( *dstStr++ = *srcStr++);
return temp;
}
int main() {
char s1[400] = {0};
char s2[100] = {0};
while (scanf("%s%s", s1,s2) != EOF)
{
printf("%s\n", MyStrcat(s1, s2));
}
return 0;
}
// 64 位输出请用 printf("%lld")