14248 - Mugen Train   

Description

One day, Tanjiro took his sister Nezuko, who had turned into a demon, on the Mugen Train. We don't know how many carriages the Mugen Train has. On the train, the siblings got separated. We only know that Tanjiro is in the 1st carriage and Nezuko is in the 3rd carriage from the end.

Today, the Flame Hashira needs to find both of them. Please help him understand the number of people in the 1st carriage, the 3rd carriage from the end, and the total number of people on the train.

 

Flame Hashira - Kyojuro Rengoku

 

Input

Multiple lines of input, each line represents the number of people in a carriage, starting from the 1st carriage and ending with the last carriage. The total number of carriages is at least 3.

 

Output

Print the following three lines:

  • "Number of people in the 1st carriage:  {number} "
  • "Number of people in the 3rd carriage from the end: {number} "
  • "Total number of people on the train: {number} "

Note: Replace {number} with the actual number of people.

Sample Input  Download

Sample Output  Download

Tags




Discuss