semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	char s[101],s1[101];
    int i,l;
	char *ps,*ps1;
	gets(s);
    l=strlen(s);
	ps=s;
	ps1=s1;
	for(i=0;i<l;i++)
	{
		*(ps1+i)=*(ps+i)+*(ps+i+1);
	}
	*(ps1+l-1)=*(ps+l-1)+*ps;
	*(ps1+l)='\0';
    puts(s1);
	return 0;
}
char ctt[200];
int main()
{
	char a[150];
	char b[150];
	int l,i;
	gets(a);
	l=strlen(a)-1;
	for(i=0;i<=l;i++)
	{
		if(i!=l)
		{
			*(b+i)=*(a+i)+*(a+i+1);
		}
		else
		{
			*(b+i)=*(a+i)+*(a+0);
			*(b+i+1)='\0';
		}
	}
	printf("%s",b);
	return 0;
}
int main()
{char zi[105],shuzu[105];
int i,j;
gets(zi);
for(i=0;i<=strlen(zi)-1;i++)
{shuzu[i]=zi[i]+zi[i+1];}
shuzu[i-1]=zi[0]+zi[i-1];
for(i=0;i<=strlen(zi)-1;i++)
{printf("%c",shuzu[i]);}





 
getchar();
getchar();

}
int main()
{
	char org[200];
	char *p;
	p=org;
	int i,m,n;
	gets(org);
	n=strlen(org);
	for(i=0;i<n-1;i++)
	{
		
		m=*(p+i)+*(p+1+i);
		printf("%c",m);
	}
	m=*(p+i)+*p;
	printf("%c",m);
}
char *calc(char *ps,char *pt)
{
	int i,m=strlen(ps);
	for(i=0;i<m-1;i++)
		*(pt+i)=*(ps+i)+*(ps+i+1);
	*(pt+m-1)=*(ps+m-1)+*(ps+0);
	return pt;
}
int main()
{
	char s[101],c[101]={'\0'};
	gets(s);
	printf("%s\n",calc(s,c));
	return 0;
}
//**********************************************
//???????????                      **
//?  ?????  1200012896                  **
//?  ??2012.12.9                           **
//**********************************************
int main()
{
    char str1[101], str2[101];
    int len;
    cin.getline(str1, 101, '\n');
    len = strlen(str1);
    for (int i = 0; i <= len -2; i++)
    {
        str2[i] = (char)((int)str1[i] + (int)str1[i + 1]);
    }
    str2[len - 1] = (char)((int)str1[len - 1] + (int)str1[0]);
    for (int j = 0; j <= len - 1; j++)
        cout << str2[j];
    return 0;
}
int main()
{
	char c[110], ch[110];
	cin.getline(c,110);
	int len = strlen(c);
	for (int i = 0; i < len - 1; i++)
		ch[i] = c[i] + c[i + 1];
	ch[len - 1] = c[len - 1] + c[0];
	for (int j = 0; j < len; j++)
		cout << ch[j];
	cout << endl;
	return 0;
}
int main()
{
	int i,s,n;
	char c[1000];
	for(i=0,n=0;;i++)
	{
		scanf("%c",&c[i]);
		if(c[i]=='\n')break;
		n++;
	}
	for(i=0;i<n-1;i++)
	{
		s=c[i]+c[i+1];
		printf("%c",s);
	}
	s=c[n-1]+c[0];
	printf("%c",s);
	return 0;
}
/*
 * ????change.cpp
 * ??:??1200012840
 * ????:2012-12-14
 * ??:???????????s??????s1?
 *      ?????s1?????
 *      ?????s???????ASCII????????ASCII????????????
 *       ?????s???????ASCII????????ASCII????????????
 *       ????????????s?????????
 *       ??????????????????s???????ASCII??s???????ASCII??
 */



int main()
{
	char a[102],*p=NULL,*q=NULL;//???????
	cin.getline(a,105);//?????
	q=a;//?????
	for(p=a;*(p+1)!='\0';p++)//????????????
		cout<<(char)(*p+*(p+1));
	cout<<(char)(*p+*q)<<endl;//????????
	return 0;//????
}
int main()
{
	int len,i;
	char str[100];
	gets(str);
	len=strlen(str);
	for(i=0;i<len;i++)
	{
		if(i!=len-1)
		{
			printf("%c",str[i]+str[i+1]);
		}else{
			printf("%c",str[len-1]+str[0]);
		}
	}
	return 0;
}
int main()
{
	char z[101]={'0'};
	char s[101]={'0'};
	char c;
	int   i,n;
gets(z);
n=strlen(z);
c=z[0]+z[n-1];
for(i=0;i<n;i++){
	s[i]=z[i]+z[i+1];
	
}
s[n-1]=c;	
printf("%s\n",s);
return 0;
}
int main()
{
	char s[101]={0},s1[101]={0};
	int i,j;
	cin.getline(s,101);
	for(i=0;i<strlen(s)-1;i++)
		{
			s1[i]=s[i]+s[i+1];
	    } 
	s1[strlen(s)-1]=s[0]+s[i];
	for(i=0;i<strlen(s);i++)
	{
		cout<<s1[i];
	}
	return 0;
}
int main()
{ char a[1000];
int  i,b[1000],cout;cout=0;
gets(a);
for(i=0;;i++){if(a[i]=='\0'){break;}else{cout++;}

}

for(i=0;i<=cout-2;i++){
	b[i]=(int)a[i]+(int)a[i+1];
}
b[cout-1]=(int)a[cout-1]+(int)a[0];
for(i=0;i<=cout-1;i++)
{printf("%c",b[i]);}


return 0;

}
int main(int argc, char* argv[])
{
	int n,i;
	char a[101],b[101]={0};
	gets(a);
	n=strlen(a);
	for(i=0;i<n-1;i++){
		b[i]=a[i]+a[i+1];
		}
	b[n-1]=a[n-1]+a[0];
	puts(b);
	return 0;
}
int main()
{
	char c[101],*p=c;
	int n,i,j,l;
	gets(c);
	l=strlen(c)-1;
	j=*p;
	for(i=0;i<l;i++)
		*(p+i)=*(p+i)+*(p+i+1);
	*(p+l)=*(p+l)+j;
	printf("%s\n",p);
	return 0;
}
char s1[100],s2[100];
int main()
{
	int i,j,k,d;
	gets(s1);
	d=strlen(s1);
	for(i=0;i<d-1;i++)
	{
		*(s2+i)=*(s1+i)+*(s1+i+1);
	}
	*(s2+d-1)=*(s1+d-1)+*s1;
	puts(s2);
	return 0;
}
int main() 
{
	int i=0,l=0;
	char zfc[LEN],Friend[LEN];
	gets(zfc);
	l=strlen(zfc);
	//printf("%d",l);
	for(i=0;i<l;i++)
	{
		if(i+1<l)
		{
		  Friend[i]=zfc[i]+zfc[i+1];
		  printf("%c",Friend[i]);
		}
		if(i==l-1)
		{
	      Friend[i]=zfc[i]+zfc[0];
		  printf("%c",Friend[i]);
		}
	}
	return 0;
}
int main (){
	char s[101],s1[101];
	char *p=s,*p1=s1;
	cin.getline(s,101);
	for(;*(p+1)!=0;p++,p1++)
		*p1=*p+*(p+1);
	*p1++=*p+*s;
	*p1=0;
	cout<<s1;
}
void main()
{
	int n,i,a,b;
   char s[100];
   char s2[100]={'\0'};
   char *p,*q;
   p=s;
   q=s2;
   gets(s);
   n=strlen(s);
   for(i=0;i<n-1;i++)
   {
	   a=(*(p+i))+(*(p+i+1));
	  (*(q+i))=a;
   }
   b=(*(p+n-1))+(*(p+0));
   (*(q+n-1))=b;
   for(i=0;i<n;i++)
   {
	   printf("%c",*(q+i));
   }
}
int main(int argc, char *argv[])
{
    char a[101];
    gets(a);
    int i;
    for(i=1;i<=strlen(a)-1;i++)
    printf("%c",a[i-1]+a[i]);
    printf("%c",a[strlen(a)-1]+a[0]);
    return 0;
}
int main()
{
	char s[101],c;
	int len,i,asc1,asc2;
	gets(s);
	len=strlen(s);

	for(i=0;i<len-1;i++)
	{
		asc1=s[i];
		asc2=s[i+1];
		c=asc1+asc2;
		printf("%c",c);
	}

	asc1=s[len-1];
	asc2=s[0];
	c=asc1+asc2;
	printf("%c",c);

	return 0;
}
int main()
{
    char* s;
    char ch[101];
    char c;
    int i;
    s=ch;
    gets(ch);
    for(i=0;i<strlen(ch)-1;i++)
    {
           c=*(s+i)+*(s+i+1);
           printf("%c",c);   
    }
    c=*s+*(s+strlen(ch)-1);
    printf("%c",c);
     return 0;
}
void main()
{
	int i,j=0;
  char *a;
  a=(char *)malloc(1000*sizeof(char));
  char *b;
  b=(char *)malloc(1000*sizeof(char));
  gets(a);
  for(i=0;;i++)
  {   
	  if(*(a+i)=='\0')
	  {
		  *(b+i)='\0';
		  break;
	  }
	  else if(*(a+i+1)=='\0') *(b+i)=*(a+i)+*(a+0);
	  else *(b+i)=*(a+i)+*(a+i+1);

  }
  for(i=0;*(b+i)!='\0';i++)
	  printf("%c",*(b+i));
}
int main(){
	int t=0;
char a[111],b[110];
for(int i=0;i<111;i++)*(a+i)='\n';
for(int i=0;i<110;i++)
{*(a+i)=getchar();
if(*(a+i)=='\n'){*(a+i)=*a;break;}
else t++;
}
for(int i=0;i<t;i++)
{*(b+i)=(char)((int)*(a+i)+(int)*(a+i+1));}
for(int i=0;i<t;i++)cout<<*(b+i);
	return 0;
}
//**********************************
//????10000012825              *
//??????                     *
//???12.15                      *
//????????????         *
//**********************************
int main ()
{
	char str1[101], str2[101];
	int i, len;
	cin.getline( str1, 101 );
	len = strlen ( str1 );  //??????????
	for ( i = 0; i <= len - 2; i++ )
		str2[i] = str1[i] + str1[ i + 1 ]; //??????????????
	str2[len - 1] = str1[len - 1] + str1[0];
	str2[len] = '\0'; //?????\0?????
	for ( i = 0; str2[i] != 0; i++ )
		cout << str2[i];
	cout << endl; //????
	return 0;
}
//*********************************
//*??????????           *
//*??????                   *
//*???1200012775               *
//*???2012/12/04               *
//*????????               *
//*????????               *
//*********************************
int main()
{
	char a[200], b[200], *p = a, *q = b, *s = NULL;	
	do	//???????
	{
		cin.get(*p);
	} while (*p++ != '\n');
	p = a;	//??????
	while (*(p + 1) != '\n')
	{
		*q = *p + *(p + 1);
		p++;q++;
	}	//???????????
	*q = *p + *a;	//??????????????????
	for (s = b; s <= q; s++)
		cout << *s;	//?????
	cout << endl;
	return 0;
}
int main(){
char s[120],w[120];
gets(s);
for (int j=0;j<strlen(s);j++){
    if(j!=(strlen(s)-1)){
          w[j]=s[j]+s[j+1];
    }
    else {
          w[j]=s[j]+s[0];
    }
}
for (int i=0;i<strlen(s);i++){
     printf("%c",w[i]);
}
return 0;
}
void main()
{
	char *p,*p1,*head,*head1;
	p=(char*)malloc(100*sizeof(char));
	head=p;
	p1=(char*)malloc(100*sizeof(char));
	head1=p1;
	gets(p);
	for(;*(p+1)!='\0';p++)
	{
		*p1=*(p)+*(p+1);
		p1++;
	}
	*p1=*p+*head;
	*(p1+1)='\n';
	for(p1=head1;*p1!='\n';p1++)
		printf("%c",*p1);
}
int main()
{
	char str[101],s[101]={""};
	int i,n;
	char *p;
	gets(str);
	n=strlen(str);
	p=str;
	for(i=0;i<n-1;i++)
        s[i]=*(p+i)+*(p+i+1);
	s[n-1]=*p+*(p+n-1);
    printf("%s",s);
	return 0;
}
int main()
{
    char *p;
    char s[10000];
    int i=0;
    
    gets(s);
    p=s;
    for (p=s;*p!='\0';p++){
        if (*p!='\0') i++;
    }
    
    for (p=s;p<s+i-1;p++){
        printf("%c",*p+*(p+1));
    }
    p=s;
    printf("%c",*p+*(p+i-1));
    
}
int main()
{
	char str[101];
	char *p = str;
	cin.getline(str, sizeof(str));
	char str_new[101];
	char *q = str_new; 
	int length;
	length = strlen(str);
	for(p = str, q = str_new; p <= str + length - 1; p++, q++)
		*q = *p + *(p + 1);
	*(str_new + length - 1) = *(str + length - 1) + *str;
	*(str_new + length) = '\0';
	cout << str_new << endl;
	return 0;
}
int main()
{
	char a[101];
	gets(a);
	char *p=a;
	char *q;
	q=p;
	char b[101]={0};
	char *qp=b;
	char *m;
	m=qp;
	for(p=q+1;*p!='\0';p++){
		*qp=*(p-1)+*p;
		qp++;
	}
	*qp=(*q)+(*(p-1));
	qp=m;
	printf("%s\n",qp);
	return 0;
}
int main()
{
	char s[110], s1[110],
		 *sf1 = NULL, *sf2 = NULL,
		 *s11 = NULL;
	cin.getline(s,110);
	sf1 = s;
	sf2 = s + 1;
	s11 = s1;
	while(*sf2 != '\0')
	{
		*s11 = *sf1 + *sf2;
		s11++;
		sf1++;
		sf2++;
	}
	sf2 = s;
	*s11 = *sf1 + *sf2;
	*++s11 = '\0';
	cout << s1;
	return 0;
}
void P(char a,char b)
{
	int m,n;
	m=a;
	n=b;
	printf("%c",m+n);
}
int main()
{
	int i,n,a,b;
	char str[100];
	gets(str);
	n=strlen(str);
	for(i=0;i<n-1;i++)
	{
		P(str[i],str[i+1]);
	}
	a=str[0];
	b=str[n-1];
	printf("%c",a+b);
	return 0;
}
int main()
{
	char *s = (char*)malloc(101*sizeof(char));
	gets(s);
	int i=0;
	for(i=0;i<strlen(s);i++){
		if(i<strlen(s)-1)
			printf("%c",(char)(*(s+i)+*(s+i+1)));
		else
			printf("%c\n",(char)(*(s+i)+*s));
	}

	return 0;
}
int main()
{
    char s[110],*p,s1[110],*q,*p1;
    int i=0;
    gets(s);
    p1=s;
    for(p=s,q=s1;*p!='\0';p++,q++,i++)
      {
          if(*(p+1)!='\0')
          *q=*p+*(p+1);
          else *q=*p+*p1;
      }
    for(q=s1;q<(s1+i);q++)
       printf("%c",*q);
}
void main()
{
	int i,n;
	char *s1=(char*)malloc(100*sizeof(char));
	char *s=(char*)malloc(100*sizeof(char));
	gets(s);
	n=strlen(s);
	for(i=0;i<n-1;i++)
	  *(s1+i)=(char)((int)(*(s+i))+(int)(*(s+i+1)));
	*(s1+n-1)=(char)((int)(*(s+n-1))+(int)(*(s+0)));
	for(i=0;i<n;i++)
	 printf("%c",*(s1+i));
}
/*
 *????friend.cpp
 *??????
 *?????2012-12-13
 *??????????
 */



int main()
{
    int n;
    char s[102],*p=s; // s??????p?????
    cin.getline(p,sizeof(s)); // ??
    n=strlen(p); // ??
    *(p+n)=*p; // ????????
    for (;p<s+n;p++)
        cout << (char) (*p+*(p+1)); // ??
    cout << endl;
    return 0;
}
void main()
{
   char *p,*a,*b;
   p=(char *)malloc(200*sizeof(char));
   gets(p);
   for(a=p,b=p+1;b<p+strlen(p);a++,b++)
	   printf("%c",*a+*b);
   printf("%c",*p+*a);
}
int main(int argc, char* argv[])
{
	char c[100],ans[100]={0};
	gets(c);
	int n=strlen(c),i=0;
	for(i=0;i<n;i++)
	{
		if(i!=n-1)
		{ans[i]=c[i]+c[i+1];}
		else ans[i]=c[i]+c[0];
		printf("%c",ans[i]);
	}
	return 0;
}
int main()
{
	char s[101], *p;
	int i;
	cin.getline(s, 101);
	int l = strlen(s);
	p = s;
	for (i = 0;i < l - 1;i++)
	{
		char a = p[i] + p[i + 1];
		cout << a;
	}
	char b =  p[0] + p[l - 1];
	cout << b;

	return 0;
}
/*              ?????
??????              2010.12.15      */
int main()
{
	int i;
	char a[110];
	cin.getline(a,sizeof(a));
	for(i=0;i<strlen(a)-1;i++)
		cout<<(char)(a[i]+a[i+1]);
	cout<<(char)(a[strlen(a)-1]+a[0])<<endl;
	return 0;
}
//???????.?????s???????ASCII????????ASCII???????????? ?????s???????ASCII????????ASCII????????????????????????s???????????????????????????s???????ASCII??s???????ASCII??




int main()
{
	char s[1000];
	cin.getline(s,1000);
	int len;
	for (len=0;s[len]!='\0';len++);
	for (int i=0;i<len-1;i++)
		cout<<(char)(s[i]+s[i+1]);
	cout<<(char)(s[len-1]+s[0])<<endl;
	return 0;
}
int main()
{
	char *s1,*s2;
	int n,i;
	s1=(char*)malloc(100*sizeof(char));
	s2=(char*)malloc(100*sizeof(char));
    gets(s1);
	n=strlen(s1);
	for(i=0;i<n-1;i++)
	{
		*(s2+i)=*(s1+i)+(*(s1+i+1));
	}
	*(s2+n-1)=*(s1+n-1)+(*s1);
	 for(i=0;i<n;i++)
	 printf("%c",*(s2+i));
	 return 0;
}
//*******************************************************************
//* ? ??4.cpp                                                    *
//* ? ??? ??1200012916                                        *
//* ? ??2012?12?8?                                            *
//* ? ?????????                                           *
//*******************************************************************

int main()
{
	
	// ????a[200]???????*p??????b1, b2, t?????
	char a[200], *p = NULL;
	int b1, b2, t;
	cin.getline (a, 200);
	t = a[0];  // ???????
	for (p = a + 1; *p != '\0'; p++)
	{
		b1 = *(p - 1);
		b2 = *p;
		*(p - 1) = b1 + b2;
	}
	b1 = *(p - 1);
	*(p - 1) = b1 + t;
	for (p = a; *p != '\0'; p++) // ???????
		cout << *p;
	cout << endl;

	return 0;
}
int main()
{
	char x[100];
	int a[100],i,n;
	char str[100];
	gets(str);
	n=strlen(str);
	for(i=1;i<n;i++)
	{
		a[i]=str[i-1]+str[i];
	}
	a[n]=str[0]+str[n-1];
	for(i=1;i<=n;i++)
	{
		printf("%c",a[i]);
	}
	return 0;
}
int main()
{
	char a[101],b[101];
	int i,j;
	cin.getline(a,101);
	for(i=0;a[i]!='\0';i++)
	{
		if(a[i+1]=='\0')
			b[i]=a[i]+a[0];
		else
		{
			b[i]=a[i]+a[i+1];
		}
	}
	for(j=0;j<i;j++)
	{
		cout<<b[j];
	}
	return 0;
}
int main()
{
	int i,n=0;
	char c[101];
	gets(c);
	for(i=0;c[i]!='\0';i++)
	{
		n++;
	}
	for(i=0;c[i]!='\0';i++)
	{
		if(i<n-1)
		{
			printf("%c",c[i]+c[i+1]);
		}
		if(i==n-1)
		{
			printf("%c",c[i]+c[0]);
		}
	}
	return 0;
}
void main()
{
	char *s;
	s=(char*)malloc(10000*sizeof(char));
	int i,n,m;
	gets(s);
	n=strlen(s);
	for(i=0;i<n-1;i++)
	{
		m=(int)(*(s+i))+(int)(*(s+i+1));
		printf("%c",m);
	}
	m=(int)(*(s+n-1))+(int)(*(s+0));
	printf("%c",m);
}
/*
 *function: ???????
 *created on: 2012-12-15
 *author: ???
 */
int main()
{
	char a[105], b[105];   // b??????????
	int i, len;
	cin.getline(a,105);   // a??????????
	len = strlen(a);
	for(i=0;i<len-1;i++)
	{
		*(b+i)=*(a+i)+*(a+i+1);   // ????a?????????????
		cout << *(b+i);
	}
	*(b+len-1)=*(a+len-1)+*a;
	cout << *(b+len-1) << endl;
	return 0;
}
int main()
{
	int s;
	char a[200],*p=a,c;
	cin.get(a,200);
	s=strlen(a);
	for(int i=0;i<s;i++)
	{
		if(i==s-1)
			c=*p+*(p+i);
		else
			c=*(p+i)+*(p+i+1);
		cout<<c;
	}
}
int main()
{
	char str[101],*p=str,*ps=str;
	gets(str);
	for(;p<str+strlen(str)-1;p++)
	{
		printf("%c",*p+*(p+1));
	}
	printf("%c",*p+*ps);
	return 0;
}
void friends(char *p, int len)
{
	int i;
	char  m = *p;
	for (i = 0; i < len - 1; i++)
		*(p + i) += *(p + i + 1);
	*(p + len - 1) += m;
}

int main()
{
	char a[105];
	cin.getline(a,101);
	int len = strlen(a);
	friends(a, len);
	cout << a << endl;
	return 0;
}
void main()
{
	char str[100],str1[100],*p,*p1,*p2;
	gets(str);
	p=str;
	p2=&str[0];
	p1=str1;
	int i,n;
	i=0;
	for(;*p!='\0';p++)
		i++;
	n=i;
	p=str;
	for(i=0;i<n-1;i++)
	{
		*p1=*p+*(p+1);
		p++;
		p1++;
	}
	*p1=*p2+*p;
	p1=str1;
	for(i=0;i<n;i++)
	{printf("%c",*p1);p1++;}
}
int main()
{
	int i,l;
	char x[105],y[105];
	gets(x);
	l=strlen(x);
	for(i=0;i<l-1;i++){
		y[i]=x[i]+x[i+1];
	}
	y[l-1]=x[l-1]+x[0];
	y[l]='\0';
	printf("%s",y);
	return 0;
}
int main(){
	char s[101],s1[101];
	cin.getline(s,sizeof(s));
	int len = strlen(s);
	for (int i = 0;i < len;i++){
		if (i == len-1){//????????? 
			*(s1+i) = *(s+i)+*(s);//?????????????? 
		} else {
			*(s1+i) = *(s+i) + *(s+i+1);//??????????????? 
		}
	}
	*(s1+len) = '\0';//?????\0 
	cout << s1 << endl;//??????? 
	return 0;
}
/*
 * 15.cpp
 *
 *  Created on: 2013-12-8
 *      Author: Administrator
 */

int main()
{
	int s;
	char *p=NULL,*q=NULL;
	char a[200],b[200];
	cin.getline(a,200);//?????
	s=strlen(a);
	for(p=a,q=b;p<a+s;p++,q++)
	{
		if(p==a+s-1)
		  *q=*p+*a;
		else
		  *q=*p+*(p+1);//????
      cout<<*q;
	}
return 0;
}
int main()
{
	char a[1000];
	cin.getline(a,1000);
	char f=a[0];
	int i=0;
	while(a[i+1])
		a[i++]=a[i]+a[i+1];
	a[i]+=f;
	cout<<a;

	return 0;
}
main()
{
	int n,i,j,k,len;
	char a,b;
	char *name,*final;
	name=(char*)malloc(101*sizeof(char));
	final=(char*)malloc(101*sizeof(char));
	gets(name);
	len=strlen(name);
	for(i=0;i<len-1;i++)
	{
		a=*(name+i);
		b=*(name+i+1);
		*(final+i)=a+b;
	}
	a=*(name+i);
	b=*(name);
	*(final+i)=a+b;
	*(final+len)='\0';
	printf("%s\n",final);
}
int main()
{
  char s[1000],s1[1000]={'\0'};
  int i,j,n;
  void change(char s[],char s1[],int n);
  gets(s);
  change(s,s1,strlen(s));
  puts(s1);
  return 0;
}
 void change(char s[],char s1[],int n)
 {
  int i;
  char*p=s;
  for(i=0;i<n-1;i++,p++)
   s1[i]=*p+*(p+1);
  s1[n-1]=*s+s[n-1];
}
int main()
{
    int i,j,k,n;
    char *p;
    p=(char *)malloc(1000*sizeof(char));
    gets(p);
    for(i=0;*(p+i)!='\0';i++)
    {
                             if((*(p+i+1))=='\0')
                             {
                                                 j=(*(p+i))+(*(p+0));
                                                 printf("%c",j);
                             }
                             else
                             {
                                                 j=(*(p+i))+(*(p+i+1));
                                                 printf("%c",j);
                             }
    }
    
    return 0;
}
//****************************************************** 
/* ? ? ?   ???????? 
/* ? ?      ????                           
/* ? ? ? ??2010 ? 12  ?  15  ?     
/* ? ? ? ?????????
/* ? ?      ?1000012752        
*******************************************************/ 
int main()                                  
{
	int length,i;
	char s[102],s1[101];				//s???????s1??????
	cin.getline(s,101);
	length = strlen(s);					//????
	s[length] = s[0];					//s??\0????????
	for(i=0 ; i<length ; i++)			//??0???length-1???s1?s??i????ASCII????????ASCII?
		s1[i] = s[i] + s[i+1];
	s1[length] = '\0';					//?s1???\0
	cout << s1;							
    return 0;
}
//4.cpp
//??????????
//?????
//???12?7?


int main()
{
	char s[200];
	char a;
	char *p;
	cin.getline(s,200);
	p = s;
	while (*p != '\0')
	{
		if (*(p+1) == '\0')
		{
			a = *p + s[0];
			cout << a;
		}
		else
		{
			a = *p + *(p+1);
			cout << a;
		}
		p++;
	}
	return 0;
}
int main()
{
    char c[210],qinpeng[210];
    int i,j;
    gets(c);
    for(i=0;i<(strlen(c)-1);i++)
    {
                            qinpeng[i]=c[i]+c[i+1];
    }
    qinpeng[strlen(c)-1]=c[0]+c[strlen(c)-1];
    qinpeng[strlen(c)]='\0';
    printf("%s\n",qinpeng);
    return 0;
}
int main(){
	char s[101];
	char qinpeng[101];
	int i,j,l,a,b;
	char c;
	gets(s);
	//getchar();
	l=strlen(s);
	for(i=0;i<l-1;i++){
		a=*(s+i);
		b=*(s+i+1);
		*(qinpeng+i)=a+b;
	}
	a=*(s);
	b=*(s+l-1);
	*(qinpeng+l-1)=a+b;
	*(qinpeng+l)='\0';
	puts(qinpeng);



	return 0;
}
void main()
{
	char s[101],t[101];
	char *p1,*p2;
	int i,len;

	gets(s);
	len=strlen(s);
    p1=s;
	p2=t;
	for(i=0;i<len-1;i++)
	{
		*(p2+i)=*(p1+i)+*(p1+1+i);
	}
	*(p2+i)=*(p1+i)+*p1;

	for(i=0;i<len;i++)
	{
	   printf("%c",*(p2+i));
	}
   
}
//* * * * * * * * * * * * * * * * * * * * * * * * 
//*???????????                       *
//*??????????? .cpp                  *
//*?????  1000012839                       *
//*???2010.12.15                             *
//* * * * * * * * * * * * * * * * * * * * * * * * 


int main()
{
	char s[101], s1[101];	//	??????s?s1??????????????
	int i;	//	?????
	int m, l;	//	m??????ASCII??l???????

	cin.getline(s, 101);
	l = strlen(s);	
	for (i = 0; i < l; i++)
	{
		if (i < l - 1)
			m = s[i] + s[i + 1];	
		else
			m = s[i] + s[0];	//	??????????????????s???????ASCII??s???????ASCII??
		s1[i] = m;	//	?ascii???????
		cout << s1[i];
	}
	cout << endl;	//	?????
	return 0;	
}
int main()
{
	char s[110],s1[110],*p=s,*p1=s1;
	int i,n;
	cin.getline(s,110);
	n=strlen(s);
	for(i=0;i<n-1;i++)
		*(p1+i)=*(p+i)+*(p+i+1);
	*(p1+n-1)=*(p+n-1)+*p;
	for(i=0;i<n;i++)
		cout<<*(p1+i);
}
int main() {
	char s[102],s1[102];
	cin.getline(s,102);
	int i=0;
	char *p=s,*q=s1;
	for(i=0;i<strlen(s)-1;i++)
	{
		*(q+i)=*(p+i)+*(p+i+1);
		cout<<*(q+i);
	}
		*(q+i)=*(p+i)+*(p);
	    cout<<*(q+i);
	return 0;
}
void main()
{
	char *p;
	p=(char *)malloc(1000*sizeof(char));
	gets(p);
	int i;
	int L=strlen(p);
	for(i=0;i<L-1;i++)
		printf("%c",*(p+i)+*(p+i+1));
	printf("%c\n",*(p+L-1)+*p);
}
int main()
{
	char a[100],b[100],*m=NULL,*n=NULL;
	int i=0;
	while((a[i]=cin.get())!='\n')
		i++;
	for(m=a,n=b;m<=a+i-2,n<=b+i-2;n++,m++)
		*n=*m+*(m+1);
	*n=*m+*(m-i+1);
	for(n=b;n<b+i;n++)
		cout<<*n;
	cout<<endl;
	return 0;
}
int main()
{
 char s[100],a;
	gets(s);
	int l=strlen(s),i;
 for(i=0;i<l;i++){
	 if(i!=l-1){
		 a=s[i]+s[i+1];
		 }
	 if(i==l-1){
		 a=s[0]+s[l-1];
	 }
	 printf("%c",a);
 }
return 0;
}
int main()
{
char a[200];
cin.getline(a,101);
int b=strlen(a);
char *p=a;
for(int i=0;i<b;i++)
cout<<(char)(*(p+i)+*(p+(i+1)%b));
}
int main()
{
	char series[101];
	cin.getline(series, 102);
	char *p = series;
	char initial = *p;
	char trans[101];
	char *q = trans;
	for(; p < series + strlen(series) - 1; p++, q++)
	{
		*q = *p + *(p+1);
	}
	*q = *p + initial;
	*(q+1) = '\0';
	cout << trans << endl;
	return 0;
}
int main(){
  char s[101];
  char *p,*q,c;
  int n,i;
  gets(s);
  n=strlen(s);
  q=s;
  p=s;
  for(i=0;i<n-1;i++){
   c=*p+*(p+1);
   p++;
   printf("%c",c);
   }
  c=*p+*q;
  printf("%c",c);
  
  }
void main(void)
{
	char s1[101],s2[101];
	char *p1=s1,*p2=s2;
	gets(p1);
	int i,l=strlen(p1);
	*(p2+l)=0;
	for(i=0;i<=l-1;i++)
		*(p2+i)=*(p1+i)+*(p1+i+1);
	*(p2+l-1)+=*p1;
	puts(p2);
}
//??????????
//???2010.12.18
//??????
//???1000012856

int main()
{
	char s[101], s1[100];			//s?????????s1???????
	int i, l;						//i?????l?s???
	gets(s);						//??s
	l = strlen(s);
	for(i = 0; i < l - 1; i++)
		s1[i] = s[i] + s[i + 1];	//??????????????s1
	s1[l - 1] = s[l - 1] + s[0];	//???s1????
	for(i = 0; i < l; i++)
		cout << s1[i];
	cout << endl;					//??
	
	return 0;
}
int main(){
	char s[110],s1[110];
	cin.getline(s,110);
	char *p=s,*p1=s1;
	for(p=s;*p!='\0';p++);
	int len=p-s;
	for(p1=s1,p=s;p<s+len-1;p++,p1++)
		*p1=*p+*(p+1);
	*p1=*p+*(p-len+1);
	*(p1+1)='\0';
	p1=s1;
	cout<<p1;
	return 0;
}
int main()
{
    char s1[1000],s2[1000]={0},temp[1000];
    int i,num[1000];
    while(0==0)
                 {
                            scanf("%s",temp);
                            if(getchar()==' ')
                            {
                            strcat(s1,temp);
                            s1[strlen(s1)]=' ';
                            }
                            else
                            {
                                strcat(s1,temp);
                                break;
                            }
                 }
    for(i=0;i<strlen(s1);i++)
    num[i]=s1[i];
    for(i=0;i<strlen(s1)-1;i++)
    s2[i]=num[i]+num[i+1];
    s2[strlen(s1)-1]=num[strlen(s1)-1]+num[0];
    printf("%s",s2);
    return 0;
}
int main()
{
    char s[101]={'\0'};
	char r[101]={'\0'};
	gets(s);
	int n;
	n=strlen(s);
	for(int i=0;i<n;i++)
	{
		int a;
		if(i!=n-1)
		{
			a=s[i]+s[i+1];
		    r[i]=a;
		}
		else
		{
			a=s[0]+s[i];
			r[i]=a;
		}
	}
	puts(r);
    return 0;
}
int main()
{
	char s[101],s1[101];
	gets(s);
	char *p=s,*p1=s1;
	for(;*p!='\0';p++,p1++){
		if(*(p+1)!='\0'){
			*p1=*p+*(p+1);
		}else{
			char *p0=s;
			*p1=*p+*p0;
		}
	}
	*p1='\0';
	p1=s1;
	printf("%s",p1);
	return 0;
}
int relative(int *a,int len,int i);

void main()
{
	char s[MAX];
	int a[MAX];
	int len,i;

	gets(s);
	len=strlen(s);
	for(i=0;i<len;i++)
		*(a+i)=*(s+i);
	for(i=0;i<len;i++)
		printf("%c",relative(a,len,i));
	putchar('\n');
}

int relative(int *a,int len,int i)
{
	int result;
	int *p;
	if(i<len-1){
		p=a+i;
		result=*p+*(p+1);
		return result;
	}
	else{
		p=a+i;
		result=*p+*a;
		return result;
	}
}
//********************************
//*???????          **
//*?????? 1200012784 **
//*???2012.12.4         **
//********************************

void change(char *);                             //??????

int main()
{	
	char ch[50];                                 //?????????
	cin.getline(ch, 300);
	change(ch);                                  //????????
	cout << ch << endl;                          //??
	return 0;
}

void change(char *ch)
{
	int l = strlen(ch);
	char key = ch[0];
	for (int i = 0; i < l - 1; i++)
		ch[i] = ch[i] + ch[i + 1];
	ch[l - 1] = ch[l - 1] + key;
}
void main()
{
	char a[150],b[150];
	int i,len;
	gets(a);
	len=strlen(a);
	for(i=0;i<len;i++)
		if(i!=len-1)b[i]=a[i]+a[i+1];
		else b[i]=a[i]+a[0];
	b[i]=0;
	printf("%s\n",b);
}