Input Format
You are given two strings, and , separated by a new line. Each string will consist of lower case Latin characters ('a'-'z').
Output Format
In the first line print two space-separated integers, representing the length of and respectively.
In the second line print the string produced by concatenating and ().
In the third line print two strings separated by a space, and . and are the same as and , respectively, except that their first characters are swapped.
Sample Input
abcd
ef
Sample Output
4 2
abcdef
ebcd afAnswer:#include <iostream>#include <string>using namespace std;int main() { string a,b; string temp; //input cin>>a; cin>>b; //size cout<<a.size()<<" "<<b.size()<<endl; //concat cout<<(a+b)<<endl; //swap temp[0]=a[0]; temp[1]=b[0]; a[0]=temp[1]; b[0]=temp[0]; cout<<a<<" "<<b<<endl; return 0;}