URI Online Judge | 2760

String Input and Output

By Roberto A. Costa Jr, UNIFEI BR Brazil

Timelimit: 1

Your teacher would like to make a program with the following characteristics:

  1. Create 3 variables to store a phrase of up to 100 characters;
  2. Read a sentence for the first variable;
  3. Read a sentence for the second variable;
  4. Read a sentence for the third variable;
  5. Print the first variable read in step 2, the second variable read in step 3, the third variable read in step 4. Be sure to skip line;
  6. Print the first variable read in step 3, the second variable read in step 4, the third variable read in step 2. Be sure to skip line;
  7. Print the first variable you read in step 4, the second variable you read in step 2, the third variable you read in step 3. Be sure to skip line;
  8. Repeat procedure 5, printing only 10 characters of each variable.

Input

The input consists of several test files. Each test file has three rows. In the first line has a variable A that stores a phrase of up to 40 characters. In the second line has a variable B that stores a phrase of up to 40 characters. In the third line has a variable C that stores a phrase of up to 40 characters. As shown in the following input example.

Output

For each file in the input, you have an output file. The output file has four rows as described in items 5, 6, 7, and 8. As shown in the following output example.

Input Samples Output Samples

Roberto

Carlos

Aldo

RobertoCarlosAldo

CarlosAldoRoberto

AldoRobertoCarlos

RobertoCarlosAldo

aaaa bbbb cccc

cccc

xxxxx xxxx xx

aaaa bbbb ccccccccxxxxx xxxx xx

ccccxxxxx xxxx xxaaaa bbbb cccc

xxxxx xxxx xxaaaa bbbb cccccccc

aaaa bbbb ccccxxxxx xxxx