semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(int argc, char* argv[])
{
	int i,l;
	char c[101];
	gets(c);
	l=strlen(c);
	for(i=0;i<=l-1;i++){
		printf("%c",c[i]+c[(i+1)%l]);
	}
	return 0;
}
int main()
{
	char a[150]={'\0'};
	gets(a);
	char *p=a;
	char q=a[0];
	int i=0;
	for(i=0;i<strlen(a)-1;i++)
	{
		*p=*p+*(p+1);
		p++;
	}
	*p+=q;
	cout<<a;
	return 0;
}
void main()
{
char s1[101],s2[101];
int i=0;
gets(s1);
while(s1[++i]!='\0')
{s2[i-1]=s1[i]+s1[i-1];}
s2[i-1]=s1[0]+s1[i-1];
s2[i]='\0';
printf("%s",s2);
}
int main()
{
	int i,j;
	char a[100],b[100];
	gets(a);
	for(i=0;i<100;i++)
	{
		if(i==99)
		{
			b[i]=a[i]+a[0];
			j=i;
			break;
		}
		else if(a[i+1]==0&&a[i+2]!=0)
		{
			b[i]=a[i]+a[0];
			j=i;
			break;
		}
		else b[i]=a[i]+a[i+1];
	}
	for(i=0;i<=j;i++)
	{
		printf("%c",b[i]);
	}
	return 0;
}
int main(){
   char s[100];
   char *p,c;
   int len;
   gets(s);
   len=strlen(s);
   c=*s;
   for (p=s;p<s+len-1;p++)
	   *p=*p+*(p+1);
       *p=*p+c;
     for (p=s;p<s+len;p++)
    	 cout<<*p;
     return 0;
}
int main()
{
	char s[101], s1[101], *p, *q;
	int i;
	cin.getline(s,101);
	int len = strlen(s);
	p = s;
	q = p;
	for (i = 0; i < len - 1; i++)
	{
		s1[i] = *p + *(p + 1);
		p++;
	}
	s1[len - 1] = *q + *p;
	for (p = s1; p < s1 + len; p++)
		cout << *p;
	cout << endl;
	return 0;
}
int main()
{
	char a[102],*p1=a,b[102]={'\0'},*p2=b;
	int i,j,k,l;
	gets(a);
	l=strlen(a);
	for(i=0;i<l-1;i++)
	{
		*(p2+i)=*(p1+i)+*(p1+i+1);
	}
	*(p2+l-1)=*(p1+l-1)+*p1;
	printf("%s",b);
}
main()
{
    int n,i;
    char a[100],*p,b[100];
    p=a;
    gets(a);
    n=strlen(a);
    for(i=0;i<n-1;i++,p++)
    {
        b[i]=*p+*(p+1);
    }
    b[n-1]=a[0]+a[n-1];
    p=b;
    for(i=0;i<n;i++,p++) printf("%c",*p);
}
int main()
{
	char s[101];
	cin.getline(s,101);
	int length=strlen(s);
	char *p=s;
	for(int i=1;i<length;i++)
	{
		cout<<(char)(*p+*(p+1));
		p++;
	}
	cout<<(char)(*p+*(p-length+1))<<endl;
	return 0;
}
main()
{ char str[100];
  gets(str);
  char *p,*p0,*q,*q0;
  int k,i;
  k=strlen(str);
  p=(char *)calloc(100,sizeof(char)); 
  q=(char *)calloc(100,sizeof(char));
  p=str;
  for(i=0;i<k-1;i++)
   {*(q+i)=*(p+i+1)+*(p+i);}
  *(q+k-1)=*p+*(p+k-1);
  for(i=0;i<k;i++)
   printf("%c",*(q+i));
}
void main()
{
    char s[102]={' '},*p;
    gets(s);
	p=s;
	*(p+strlen(s))=*p;
	for(p=s;p<s+strlen(s);p++)
		*p+=*(p+1);
	*(p-1)='\0';
	printf("%s",s);
}
int main()
{
	int n,i;

	char str[101];
	char bud[101];
	gets(str);
	n=strlen(str);
	for(i=0;i<n;i++){
		*(bud+i)=*(str+(i%n))+*(str+((i+1)%n));
	}
	for(i=0;i<n;i++){
		printf("%c",*(bud+i));
	}
	return 0;
}
/*
 * qinpengzifuchuan.cpp
 *
 *  Created on: 2012-12-14
 *      Author: Justin
 */

int main(){
	char a[101],*p,*q,*r;
	cin.getline(a,101);
	int len;
	len=strlen(a);
	for(p=a;p<a+len-1;p++){
		int b;
		b=*p+*(p+1);
		char c;
		c=b;
		cout<<c;
	}
	q=a;r=a+len-1;
	int d=*q+*r;
	char e=d;
	cout<<e;

}
//********************************
//*???????          **
//*?????? 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);
	for (int i = 0; i < l - 1; i++)
		*(ch + i) = *(ch + i) + *(ch + i + 1);   //?ASCII?????
	*(ch + l - 1) = *(ch + l - 1) + key;
}
int main()
{int n,i;
char a[100],b[100];
int a1[100];
int *p,*p1;

gets(a);
n=strlen(a);
for(i=0;i<n;i++)
a1[i]=a[i];
p=a1;
p1=a1;
for(i=0;i<=n-2;i++)
{b[i]=(*p)+(*(p+1));
p++;
}
b[n-1]=(*p)+(*p1);
for(i=0;i<=n-1;i++)
printf("%c",b[i]);
return 0;

}
int main(){
	char s[101];
	char s1[101];

	char *p=s,*q=s1;
	char *t=s;

	gets(s);
	for(p=s+1,q=s1;p<s+strlen(s),q<s1+strlen(s)-1;p++,q++){
		*q=*(p-1)+*p;
	}
	*q=*(p-1)+*t;

	for(p=s1;p<s1+strlen(s);p++){
		printf("%c",*p);
	}

	return 0;
}
/*
 *???: friend_string.cpp
 *??: ???
 *????: 2012-12-09
 *??: ???????
 */



int main()
{
	char str1[MAXL+10],str2[MAXL+10];
	char *p,*q;
	
	cin.getline(str1,sizeof(str1));
	for (p=str1,q=str2;*p;p++,q++){
		*q=*p;
		if (*(p+1)) //????????
			*q+=*(p+1);
		else
			*q+=*str1;
	}
	*q=0; //???\0
	cout << str2 << endl;
	return 0;
}
int main()
{
	char a[200],*p=NULL,b;
	cin.getline(a,199);
	p=a;
	do{
		b=*p;
		p++;
		b=b+*p;
		cout <<b;
	}while(*(p+1)!='\0');
	b=*p;
	p=a;
	b=b+*p;
	cout <<b <<endl;
	return 0;
}
/**
* @file		???????.cpp
* @author	??	1000012792
* @date		2010.12.15
*/

int main()
{
	int l, i;
	char s[110], s1[110];				//s[]??????s1[]?s??????
	gets(s);							//??s[]

	l = strlen(s);						//?s???
	for(i=0;i<l-1;i++)
		s1[i] = s[i] + s[i+1];		//???????i???????????i???i+1??i=l??????????
	s1[i] = s[i] + s[0];
	
	for(i=0;i<l;i++)
		cout << s1[i];					//??s1[]
	return 0;
}
//??????????
//??????
//???2010.12.15

int main()
{
	char a[101];                          //??a????????
	char b[101];                          //??b?????????
	int i = 0;
	int length = 0;

	memset(a,0,sizeof(a));
	memset(b,0,sizeof(b));

	cin.getline(a,101);

	length = strlen(a);                   //????????
	for (i = 0; i <= length - 2; i++)     //??????????
		b[i] = a[i] + a[i + 1];
	b[i] = a[i] + a[0];                   //??????????????

	for (i = 0; i < length; i++)
		cout << b[i];

	return 0;
}
//*****************************************************************
//*???????????? ***************************************
//*??????? 1200012979 **************************************
//*???2012.12.4 ************************************************
//*****************************************************************
int main()
{
	char a[101], *p = a+1, *q = a;
    cin.getline(a, 101);               //??????p???????
    do                                 //????p--??
	{
		p--;
        cout << (char) (*p + *++p);    //??????
	}
	while(*++p != '\0');
	cout << (char)(*--p + *q) << endl; //????????????
	return 0;
}
int main()
{
	char a[110], b[110];
	int i;
	gets( a);
	for(i = 0; a[i + 1] != '\0'; i++)
		b[i] = a[i] + a[i + 1];
	b[i] = a[i] + a[0];
	b[i + 1] = '\0';
	puts(b);
	return 0;
}
//???????
//1000062701
//???

int main()
{
	char qp[200];
	cin.getline( qp, 200 );
	int i, k;
	int str;
	char ch, temp;
	str = strlen(qp);          //????
	ch = qp[0];
	for( i=0; i<str-1; i++ )
	{
		qp[i] += qp[i+1];
	}
	qp[str-1] += ch;           //?????????
	cout << qp;
	return 0;
}
/***************
*??????
*?????
****************/
int main()
{
	char a[101], b[101];           
	int l;
	cin.getline(a,101);
	l = strlen(a);
	for(int i=0; i < l; i++)
	{
		if(i < l-1)
		{
			b[i] = (char)(a[i] + a[i+1]);
		}
		else
		{
			b[i]= (char)(a[i] + a[0]);
		}
	}
	for(int j=0; j < l; j++)
	{
		cout << b[j];
	}
return 0;
}
int main()
{
	char a[101], b[101];
	cin.getline(a,101);
	int i,n;
	n = strlen(a);
	for(i = 0; i <= n - 1; i++)
	{
		if(i == n - 1)
		{
			b[i] = a[i] + a[0];
		}
		else
		{
		    b[i] = a[i] + a[i + 1];
		}
	}
	for(i = 0; i <= n - 1; i++)
	{
		cout << b[i];
	}
	return 0;
}
/*
 * Pointer1.6RelativeChar.cpp
 * ???????
 *  Created on: 2012-12-18
 *      Author: ???
 *      ?????????s??????s1
 */
int main(){
	char s[101],s1[101];
	char *ps=s,*ps1=s1;//???????ps?ps1??????
	char c1,c2;
	cin.getline(s,101);
	int i;
	for( i=0;i<strlen(s)-1;i++)
	{   c1=*(ps+i);
	    c2=*(ps+i+1);
		*(ps1+i)=c1+c2;//????????????s1??????????
	}
    *(ps1+i)=*(ps+i)+*(ps+0);//?????????????s???????ASCII??s???????ASCII??
    *(ps1+i+1)='\0';
    cout<<&ps1[0]<<endl;
    return 0;
}
int main()
{
	int i;
	char a[130];
	char *p=a;
	gets(a);
	for(i=1;i<strlen(a);i++)
	putchar(*p+*(++p));
	putchar(*p+*a);
	return 0;
}
char *strqp(char *);

int main()
{
    char buffer[101]={0};
	gets(buffer);
	printf("%s\n",strqp(buffer));
	return 0;
}

char *strqp(char *str)
{
	int len;
	len=strlen(str);
    
	char *qp;
	qp=(char *)malloc(len+1);
	int index=0;
	for(index=0;index<len-1;index++)
		qp[index]=(str[index]+str[index+1]);
	qp[len-1]=str[len-1]+str[0];
	qp[len]='\0';
	return qp;
}
void main()
{void qp(char *p,int n);
char a[105];int l;gets(a);l=strlen(a);
qp(a,l);printf("%c\n",a[0]+a[l-1]);
}
void qp(char *p,int n)
{if(n>=2){printf("%c",*p+p[1]);n--;
qp(p+1,n);}}
int main(){
	char a[111],b[111];
	char *ap=a,*bp=b;
	gets(a);
	for(unsigned int i=0;i<=strlen(a)-2;i++){
		*(bp+i)=*(ap+i)+*(ap+i+1);
	}
	*(bp+strlen(a)-1)=*(ap+strlen(a)-1)+*(ap);
	*(bp+strlen(a))='\0';
	cout<<b;
	return 0;
}
void main()
{
	char a[100];
	int b[100],n,i;
	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;
	for(i=0;i<n;i++)
	{
		printf("%c",*(b+i));
	}
}
//************************
//* ??? ???????*
//* 1200012878 ???    *
//* 12?9?              *
//************************
int main()
{
	char s[101], *p;
	cin.getline(s, 101);
	int len = strlen(s);
	int i;
	p = s;
	char temp = s[0];
	for (i = 0; i <= len - 2; i++)
	{
		*p = *p + *(p + 1);
		p++;
	}
	*p = *p + temp;
	p = s;
	for (i = 0; i <= len - 1; i++)
		cout << *p++;
	return 0;
}
void main()
{char s1[100],s2[1];
char *p;
int a,i;
gets(s1);
s2[0]=s1[0];
a=strlen(s1);
p=&s1[0];
for(i=0;i<a-1;i++)
{*(p+i)=s1[i]+s1[i+1];
}
*(p+a-1)=s1[a-1]+s2[0];
for(i=0;i<a;i++)
putchar(*(p+i));
}
void main()
{
	char zfc[101],newzfc[101]={0};
	char *p,*pn;
	int len;
	pn=newzfc;
	gets(zfc);
	len=strlen(zfc);
	for(p=zfc;p<zfc+len-1;p++){
		*pn=*p+*(p+1);
		pn++;
	}
	p=zfc;
	*pn=*p+*(p+len-1);
	puts(newzfc);
}
//
//	?????	???????
//	?????	??????s??????s1
//	?????	?  ? ? ? ?? 1000012733 ?
//	?????	2010 ? 12 ? 18 ?
//
int main()
{
	char s[101], s1[101];
	int i, len;
	cin.getline ( s, 101 );
    len = strlen ( s );
	memset ( s1, 0, 101 );
	for ( i = 0; i < len; i++ )
	{
		if ( i < len - 1 )
			s1[i] = s[i] + s[i + 1];
		else
			s1[i] = s[i] + s[0];
	}
	cout << s1 << endl;
	return 0;
}
int main()
{
	char a[200], *p;
	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 ()
{
	int i;
	char s[101],s1[101];
	cin.getline (s,101);
	for (i=0;s[i]!='\0';i++)
	{
		s1[i]=(char)((int)s[i]+(int)s[i+1]);
	}
	s1[i-1]=(char)((int)s1[i-1]+(int)s[0]);
	s1[i]='\0';
	cout <<s1<<endl;

	return 0;
}
int main()
{
    int i,len;
    char word[10000],c;
    gets(word);
    len=strlen(word);
    c=word[0];
    for(i=0;i<len-1;i++)
    word[i]+=word[i+1];
    word[i]+=c;
    printf("%s",word);
   // getch();
    return 0;
}
void main()
{
	char a[102];
	char * p;
	char t;
	gets(a);
    t=a[0];
	for(p=a+1;*p!='\0';p++)
		*(p-1)=*(p-1)+*p;
	*(p-1)=*(p-1)+t;
	for(p=a;*p!='\0';p++)
		printf("%c",*p);

}
int main()
{char a[100],b[100];
 int i,j,n,m;
 gets(a);
 n=strlen(a);
 for(i=0;i<n;i++)
 {	if(i==n-1)
 	b[i]=a[i]+a[0];
 	else
	b[i]=a[i]+a[i+1];
 }
 b[n]='\0';
 printf("%s",b);
 return 0;
}
/*
@file 1000012837_1.cpp
@date 20101215
@author ???
@description ???????
*/
int main()
{
	char str1[101], str2[101], i, l;
	cin.getline(str1, 101);	//?????str1
	l = strlen(str1);	//l??????
	for(i = 0; i < l - 1; i ++)
	{
		str2[i] = str1[i] + str1[i + 1];	//?????s??i????ASCII???i+1????ASCII?????i?????
	}
	str2[l - 1] = str1[0] + str1[l - 1];	//??????????????????s???????ASCII??s???????ASCII?
	str2[l] = 0;	//??????\0??
	cout << str2 << endl;	//?????
	return 0;
}
int main()
{
  char a[120]={'\0'} ;
  char b[120]={'\0'} ;
  char *p=0;
  int i,len;
  gets(a);
  len=strlen(a);
  for(p=a,i=0;p<a+len-1;i++,p++){b[i]=*p+*(p+1);}
  p=a;
  b[len-1]=*(p+len-1)+*p;
  puts(b);  	
  return 0;
}
int main()
{
		char a[102];
		char b[102];
		gets(a);
		int i =0;
		for(;i<strlen(a);i++)
		{
			b[i] = a[i]+a[(i+1)%strlen(a)];
		}
		b[i]='\0';
		printf("%s",b);
		return 0;
}
void main()
{
	int i,k,t;
	char*p1,*p2;
	p2=p1=(char*)malloc(100*sizeof(char));
	gets(p1);
	k=strlen(p1);
	t=*(p1+0);
	for(i=0;i<k-1;i++)
      *(p2+i)=*(p1+i)+*(p1+i+1);
	if(i=k-1)
		*(p2+i)=*(p1+i)+t;
	printf("%s",p2);
}
int main()
	{
		char a[3000],b[30000];
		int i,k=0,q=0,t=0,w=0;
		gets(a);
		w=strlen(a);
		for(i=0;a[i]!='\0';i++)
		{
			b[i]=a[i]+a[i+1];
		}
		b[w-1]=a[0]+a[w-1];
		b[w]='\0';
		puts(b);
		return 0;
	}
int main()
{
	int i,len;
	char a[101];
	char b[101]={'\0'};
	char *pa,*pb;

	gets(a);
	len=strlen(a);
	for(pa=a,pb=b;pa<a+len-1;pa++,pb++)
	{
		*pb=*pa+*(pa+1);
	}
	*pb=*pa+*a;
	printf("%s\n",b);	
	return 0;
}
void main()
{
	int i;
	char *a;
	a=(char*)calloc(10000,sizeof(char));
	gets(a);
	for(i=0;*(a+i)!='\0';i++)
	{
		if(*(a+i+1)=='\0')
			printf("%c",*(a+i)+*(a+0));
		else
			printf("%c",*(a+i)+*(a+i+1));
	}
}
int main()
{
	int i = 0, j;
	char s[101], a[101], *p;
	cin.getline (s, 101);
	p = s + 1;
	for(; *p != '\0'; p++)
	{
		a[i] = *p + *(p - 1);
		i++;
	}
	a[i] = *(p - 1) + s[0];
	for(j = 0; j <= i; j++)
		cout << a[j];
	return 0;
}
int main()
{
	char a[1000];
	int i;
	cin.getline(a,1000);
	int l=strlen(a);
	a[l]=a[0];
	char b[1000];
	for (i=0;i<l;i++)
	{
		b[i]=a[i]+a[i+1];
	}
	for (i=0;i<l;i++)
		cout<<b[i];
	return 0;
}
int main()
{
	int t,i,n,l;
	char s[300],a[300][300],ch;
gets(s);
l=strlen(s);
ch=s[0];
for (i=0;i<l-1;i++) s[i]=s[i]+s[i+1];
s[l-1]+=ch;
printf("%s",s);
}
int main()
{
	char a[1000],temp;
	int i,l;
	cin.getline (a,1000);
	temp=*(a);
	l=strlen(a);
	for(i=0;i<l;i++)
	{
		if(i<l-1)
		*(a+i)=*(a+i)+*(a+i+1);
		else
		*(a+i)=*(a+i)+temp;
	}
	for(i=0;i<l;i++)
	{
		cout<<*(a+i);
	}
	return 0;
}
int main()
{
	char zifu[2][100];
	gets(zifu[0]);
	int t;
	t=strlen(zifu[0]);
	int i,j;
	for (i=0;i<t-1;i++)
	{
		char c;
		char a;
		char b;
		a=zifu[0][i];
		b=zifu[0][i+1];
		c=a+b;
		printf("%c",c);
	}
	char c;
	char a;
	char b;
	a=zifu[0][0];
	b=zifu[0][t-1];
	c=zifu[0][0]+zifu[0][t-1];
	printf("%c",c);


	
	return 0;

}
int main()
{
	char *string;
	string=(char *)malloc(101);
	gets(string);
	char *p=string;
	int len=strlen(string);
	int i;
	for(i=0;i<len-1;i++)
	{
		printf("%c",*p+*(p+1));
		p++;
	}
	printf("%c",*p+*string);
	return 0;
}
int main()
{
	char s[101];
	char *p;
	char s1[101];
	char *t;
	int n;

	gets(s);
	n=strlen(s);
	
	t=s1;
	for(p=s;p<s+n-1;){                
		*t=*p+*(++p);
		t++;
	} 
	*t=*p+*s;

	for(t=s1;t<s1+n;t++){
		printf("%c",*t);
	}
	return 0;
}
int main()
{
	char a[105], * p, x;
	int i = 0;
	gets(a);
	p = a;
	x = * p;
	for(i = 0; * (p + i + 1) != '\0'; i++)
	    * (p + i) += * (p + i + 1);
	* (p + i) += x;
	cout << a;

	return 0;
}
int main()
{
  char s[120],t;
  int i,b;
  gets(s);
  b=strlen(s);t=s[0];
  for(i=0;i<b-1;i++)
    s[i]=s[i]+s[i+1];
    s[b-1]=s[b-1]+t;
  for(i=0;i<b;i++)
    printf("%c",s[i]);
}
int main()
{
	int i,len,sum;
	char S[100];
	gets(S);
	len=strlen(S);
	for(i=0;i<len-1;i++){
		sum=(S[i]-48)+(S[i+1]-48);
		printf("%c",sum+'a'-1);
	}
		sum=(S[0]-48)+(S[len-1]-48);
		printf("%c\n",sum+'a'-1);

//	printf("%d\n",'1');
	return 0;
}
void main()
{
	char str[100],str1[100];
	int i,len;
	char *p,*p1;
	gets(str);
	len=strlen(str);
	p=str;
	p1=str1;
	for (i=0;i<len-1;i++)
		*(p1+i)=(char)((int)*(p+i)+(int)*(p+i+1));
	*(p1+len-1)=(char)((int)*(p+len-1)+(int)*(p+0));
	for(i=0;i<len;i++)
		printf("%c",*(p1+i));
}
int main()
{
    int i;
	char s1[101]={'\0'},s2[101]={'\0'};
	gets(s1);
	for(i=0;*(s1+i+1)!='\0';i++)
		*(s2+i)=*(s1+i)+*(s1+i+1);
	*(s2+i)=*(s1+i)+*s1;
	puts(s2);
	return 0;
}
int main()
{
    char a[102];
    cin.getline(a, 102);
    int length = strlen(a);
    int a0 = a[0];
    for (int i = 0; i < length-1; i++) {
        a[i] += a[i+1];
    }
    a[length-1] += a0;
    cout << a;
}
int main()
{
int j=0;
	char a[101],b[101], *p, *q, *i;
	cin.getline (a,101);
	p=a;
	i=a;
	q=b;	for (;*p!='\0';p++,q++)
	{j++;
		if (*(p+1)=='\0')
			*q=*p+*i;
		else
			*q=*p+*(p+1);
	}
	for (int k=0;k<=j-1;k++)
	{
		cout << b[k];
	}
	return 0;
}
void main()
{
	int i;
	char a[100001],*p,e,l;
	gets(a);
	p=a;
	l=*p;
	for(i=0;i<strlen(a)-1;i++)
	{
		e=*(p+i);
		*(p+i)=e+*(p+i+1);
		printf("%c",*(p+i));
	}
	printf("%c",l+*(p+i));
}
int main()
{
	int n,i,l,a,t,k;
	char s[101],b[101],*p,*q;
	gets(s);
	l=strlen(s);
	for(p=s,q=b;p<s+l-1;p++,q++){
		*q=*p+*(p+1);
	}
	*q=*p+s[0];
	for(q=b;q<b+l;q++){
		printf("%c",*q);
	}
	return 0;
}
int main()
{
    char s[111];
    char first;
    char *p,*q;
    gets(s);
    p=&s[0];
    q=&s[1];
    first=*p;
    
    while(*q != '\0')
    {
        cout<<(char)  ((*p) + (*q)) ;
        *p++;
        *q++;
    }
    cout<<(char) (*p+first);
    
    return 0;
}
int main()
{
	char s[100];
	gets(s);
	char s1[100];
	int i;
	int len;
	len=strlen(s);
	for(i=0;i<len;i++){
		if(i<len-1){
			s1[i]=s[i]+s[i+1];
		}
		else{
			s1[i]=s[i]+s[0];
		}
	}
	for(i=0;i<len;i++){
		printf("%c",s1[i]);
	}
	scanf("%d",&len);
	return 0;
}
int main()
{
	char a[101]={0},*p=a,b[101],*q=b;
	char c; 
	for(p=a;c!='\n';p++)
	{
		c=cin.get();
		*p=c;
	}
	for(p=a;*(p+1)!='\n';p++,q++)
		*q=(char)((int)*p+(int)*(p+1));
	*q=(char)((int)*p+(int)*a);
	*(q+1)='\0';
	cout<<b;



	return 0;
}
/**
* ?????????? 
* ?????
* ???10.12.15
***/

int main ()
{
	char str[150];
	cin.getline(str,150);//?????
	int i, len = strlen(str);
	for( i = 0; i < len - 1 ; i++)
	{
		cout <<(char)( str[i]+str[i+1]);//??
	}
	cout << (char)(str[len-1]+str[0]);

	return 0;
}
int main()
{
	int i,j,k,n;
	char string[200];
	gets(string);
	n=0;
	for (i=1;i<=100;i++)
	{
		if (string[i]!='\0')
		{
			n++;
		}
		else break;
	}
	for (i=0;i<=n-1;i++)
	{
		printf("%c",string[i]+string[i+1]);
	}
	printf("%c",string[n]+string[0]);
	return 0;
}
int main()
{char s[999];
int i,n,t,tt,ttt;
gets(s);
n=strlen(s);
for(i=1;i<=n;i++)
{if(i<n)
{t=s[i-1];
tt=s[i];
ttt=t+tt;
printf("%c",ttt);
}
if(i==n)
{t=s[i-1];
tt=s[0];
ttt=t+tt;
printf("%c",ttt);
}
}
return 0;
}
int main(){
	char a[300],b[300];
	gets(a);
	char *p,*q;
	for(p=a,q=b;*(p+1)!='\0';p++,q++){
		*q=*p+*(p+1);
	}
	*q=*p+a[0];
	*(++q)='\0';
	cout<<b;
}
void f(char a[])
{
    int i = 0;
    for (i = 0; a[i + 1] != '\0'; i++)
        cout << (char)(a[i] + a[i + 1]);
    cout << (char)(a[i] + a[0]);
    cout << endl;
    return;
}
int main()
{
    char a[101];
    cin.getline(a, 101);
    f(a);
    return 0;
}
int main()
{
	char a[1000];
	cin.getline(a,1000);
	int a0=(int) a[0];
	for(int i=0;i<strlen(a)-1;i++)
		cout<<(char)(a[i]+a[i+1]);

	cout<<(char)(a[strlen(a)-1]+a0);
	return 0;
}
main()
{
	char *a;
	a=(char *)malloc(100*sizeof(char));
	gets(a);
	int i,m;
	m=strlen(a);
	for(i=0;i<m-1;i++)
		printf("%c",*(a+i)+*(a+i+1));
	printf("%c",*a+*(a+m-1));
}
void main()
{
	int i;
	char *s,*c;
	s=(char *)malloc(sizeof(char)*105);
	c=(char *)malloc(sizeof(char)*105);
	gets(s);
	for(i=0;*(s+i+1)!='\0';i++)
	{
		*(c+i)=*(s+i)+*(s+i+1);
	}
	*(c+i)=*(s+i)+*s;
	*(c+i+1)='\0';
	puts(c);
}
int main()
{
	char a[101],*p,s1[101];
	int n,i;
	gets(a);
	n=strlen(a);
	for(i=0;i<n+1;i++)
	{
		s1[i]='\0';
	}
p=a;
	for(i=0;i<n;i++)
	{
	if(i<n-1)
{
         s1[i]=*(p+i)+*(p+i+1);
	}
	else
{
	s1[i]=*(p+i)+*p;}	
printf("%c",s1[i]);
}
         return 0;
}
int main()
{
	char a[101];
	cin.getline(a,101);
	char *p;
	p = a;
	char b[101];
	int n = strlen(a);
	int i = 0;
	for (i = 0;i < n;i++)
	{
		if (i != n-1)
			b[i] = p[i] + p[i+1];
		else
			b[i] = p[i] + p[0];
	}
	for (i = 0;i < n;i++)
		cout<<(char)(b[i]);
	return 0;
}
int main()
{
	char str[102], *p, c;
	cin.getline(str,102);c = str[0];
	for (p = str; *p != 0; p++)
	{
		if (*(p+1) != 0)
			*p += *(p+1);
		else
			*p += c;
	}
	for (p = str; *p != 0; p++)
		cout << *p;
	cout << endl;
	return 0;
}
void main()
{
	int i,j,k,l,m,n;
	char *p,*q;
	p=(char*)malloc(100*sizeof(char *));
	q=(char*)malloc(100*sizeof(char *));
	gets(p);
	l=strlen(p);
	for (i=0;i<l-1;i++)
	{
		*(q+i)=*(p+i)+*(p+i+1);
	}
	*(q+l-1)=*(p+l-1)+*p;
	*(q+l)='\0';
	puts(q);
}
/*	???:?????
	???:1000012896 leo
	??:2010.12.17
	????:???????
	*/
int main()
{
	char s[101],s_[101];
	int i;
	cin.getline(s, 101);
	for (i = 0; i <= strlen(s) - 2; i++)
		s_[i] = s[i] + s[i + 1];
	s_[strlen(s) - 1] = s[0] + s[strlen(s) - 1];
	s_[strlen(s)] = '\0';
	cout << s_;
	return 0;
}
int main()
{
	char str1[110],str2[110];
	char *p,*q;
	int i;
	p=str1;
	q=str2;
	gets(p);
	for(i=0;;i++)
	{
		if(*(p+i+1)=='\0')
		{
			*(q+i)=*(p+i)+*p;
			*(q+i+1)='\0';
			break;
		}else{
			*(q+i)=*(p+i)+*(p+i+1);
		}
	}
	q=str2;
	for(i=0;;i++)
	{
		if(*(q+i)!='\0')
		{
			printf("%c",*(q+i));
		}else{
			break;
		}
	}
	printf("\n");
	return 0;
}
int main()
{
	char c, str[100], s1[100];
	int i, num = 0;
	gets(str);
	for (i = 0;str[i] != '\0';i++)
		num++;
	for (i = 0;i < num - 1;i++)
	{
		s1[i] = str[i + 1] + str[i];
	}
	s1[num - 1] = str[num-1] + str[0];
	s1[num] = '\0';
	puts(s1);
	return 0;
}
/* ???: ???????.cpp
 * ??? 1200012826 ??
 * ???2012?12?9?
 */
int main()
{
	char a[102];
	cin.getline(a, 102, '\n');
	char *p=a;
	while(*p != '\0')
	{
		if(*(p+1) == '\0')
		{
			cout << (char)(*p + a[0]);
		}
		else
		{
			cout << (char)(*p + *(p+1));
		}
		p++;
	}
	return 0;
}
/*
 *???: qinpengzifuchuan.cpp
 *??????
 *????: 2012-12-10
 *??: ???????
 */


int main ()
{
    char s[101], s1[101];
    cin.getline(s,101);
    //??cin??????????
    for (int i = 0; i < strlen(s)-1; i++)
        *(s1+i) = *(s+i) + *(s+i+1);
    //???????
    *(s1+strlen(s)-1) = *(s+strlen(s)-1) + *s;
    //????
    *(s1+strlen(s)) = '\0';
    //?s1???????
    cout << s1;
    return 0;
}
int main()
{char str1[103],str2[103];
cin.getline(str1,101);
char *p=str1,*q=str2;
int l=strlen(str1);
for(int i=0;i<l-1;i++)q[i]=p[i]+p[i+1];
q[l-1]=p[l-1]+p[0];
for(int i=0;i<l;i++)cout<<q[i];

return 0;
}
int main(){
	char s[100],a[100],s1[100];
	int n,i,j;
	gets(s);
	n=strlen(s);
	for(i=0;i<n;i++)
	{	a[i]=("%d",s[i]);}
	
	for(i=0;i<n;i++)
	{	s1[i]=a[i]+a[i+1];}
	s1[n-1]=a[0]+a[n-1];
	for(i=0;i<n;i++)
		printf("%c",s1[i]);
	return 0;}
void main()
{
	char s1[100],s2[100],n,i;
	gets(s1);
	n=strlen(s1);
	for(i=0;i<n-1;i++)
		s2[i]=*(s1+i)+*(s1+i+1);
	s2[n-1]=*(s1+0)+*(s1+n-1);
	s2[n]='\0';
	puts(s2);
}
int main()
{
	char sz[101]={0},*p,*p1,f[101]={0},*pf;
	int m;
	gets(sz);
	m=strlen(sz);
	p=sz,p1=p,pf=f;
	for(p1=p,pf=f;p1<sz+m,pf<f+m;p1++,pf++){
		if(p1<=sz+m-2){
			*pf=*p1+*(p1+1);
		}else{
			*pf=*p+*(p+m-1);
		}
	}
	printf("%s\n",f);
	return 0;
}
main ()
{
	char a[101],b[101];
	gets(a);
	for (int i=0;i<strlen(a);i++)
	{b[i]=a[i]+a[i+1];
	b[strlen(a)-1]=a[0]+a[strlen(a)-1];
	printf ("%c",b[i]);}
}
/*
 * ????1206.cpp
 * ??????
 * ?????2012-12-16
 * ???????????????
 */



int main() {
	char s[101], *p = NULL; //????
	cin.getline(s, 101); //?????
	for (p = s; p < s + strlen(s) - 1; ++p)
		cout << (char) (*p + *(p + 1)); //?????????????
	cout << (char) (*s + *p) << endl; //????????????
	return 0; //????
}
/**
 * ? ? ?: ???????
 * ?    ?????
 * ????: 2010?12?15?
 * ??????????????????
 */
void f(char *, char *, int);	//????

int main()
{
	char a[101], b[101];		//??????a????????b????????
	cin.getline(a,101);			
	int len = strlen(a);		//?????????
	f(a,b,len);					//????
	return 0;
}

void f(char *p, char *q, int len)		//???????????????
{
	int i;
	char *m = NULL, *n = NULL;			//??????m?n????a?b?????
	m = p;
	n = q;
	for ( ; p < m + len - 1; p++, q++ )	//?????????????
		*q = *p + *(p+1);
		*q = *p + *m;
	*(q+1) = '\0';				//?????????????'\0',?????
	for ( i = 0; i < len; i++ )
		cout << *(n+i);
	cout << endl;
}
int main()
{
    char a[100];
    gets(a);
    int n=strlen(a);
    int i;
    char b;
    for(i=0;i<n-1;i++){
                       b=a[i]+a[i+1];
                       printf("%c",b);
                       }
    printf("%c",a[n-1]+a[0]);
    return 0;
}
void main()
{
         char *p;
         int i;
         p=(char*)malloc(200*sizeof(char));
         gets(p);
         char *p1;
          p1=(char*)malloc(200*sizeof(char));
         for(i=0;i<strlen(p)-1;i++)
         {
                
                 *(p1+i)=*(p+i)+*(p+i+1);
                 }
         *(p1+i)=*p+*(p+i);
         for(i=0;i<strlen(p);i++)
         printf("%c",*(p1+i));
         

}
int main()
{
	char str1[101],str2[101];
	memset(str1,0,101*sizeof(char));
	memset(str2,0,101*sizeof(char));
	gets(str1);
	int len=strlen(str1);
	int i;
	for(i=1;i<=len-1;i++)
	{
		str2[i-1]=str1[i-1]+str1[i];
	}
	str2[len-1]=str1[len-1]+str1[0];
	printf("%s\n",str2);
}
int main()
{
	char c[201] , *p = c , temp;
	cin.getline( c , 200 );
	temp = *c;
	while ( *p )        //?????????/0
	{
		*p += *( p + 1 );
		p ++;
	}
	*( p - 1 ) += temp;  //????????
	cout << c <<endl;
	return 0;
}