#include<stdio.h> int main() { int num1,num2; int result=0; scanf("%d%d",&num1,&num2); result=MergeData(num1,num2); printf("%d",result); } int MergeData(int num1,int num2){ int newnum=0; newnum=num1%10*1000+num2%10*100+num1/10*10+num2/10; return newnum; }