Imagine a tollbooth at a bridge. Cars passing by the bridge are expected to pay a 50 rupees toll. Mostly they do, but sometimes a car goes by without paying. The tollbooth keeps track of the number of cars that have gone by, and of the total amount of money collected. Write a program to allow the user to press the key 1 to count a paying car, and 2 to count a nonpaying car.
Pressing any other key should cause the program to print the output (as defined in Output format section) and then exit from the program.
Output format:
The output consists of 4 lines.
First line of the output contains an integer which corresponds to the total number of cars.
Second line of the output contains an integer which corresponds to total number of cars who paid.
Third line of the output contains an integer which corresponds to total number of cars who have not paid Fourth line contains an integer which corresponds to the total amount of money collected in rupees.
Sample Input:
1
1
2
1
2
1
2
1
1
1
5
Sample Output:
10
7
3
350
Explanation:
In above case, total car is 10 among them 7 cars who paid whereas 3 car have not paid. For 7 paid cars, total cash collected is 350.
5