Byteland Airlines recently extended their aircraft fleet with a new model of a plane.
The new acquisition has rows of seats in the business class and rows in the economic class.
In the business class each row contains seats, while each row in the economic class has seats.
Task
Write a program which:
reads information about available seats in the plane,
calculates the sum of all seats available in that plane,
writes the result.
Input
In the first and only line of the standard input there are four integers , , and
(), separated by single spaces.
Output
The first and only line of the standard output should contain one integer - the total number of seats available in the plane.
Example
For the input data:
2 5 3 20
the correct result is:
70
Task author: Piotr Stanczyk.
Send Feedback
In the event of technical difficulties with Szkopuł, please contact us via email at szkopul@fri.edu.pl.
If you would like to talk about tasks, solutions or technical problems, please visit our Discord servers. They are moderated by the community, but members of the support team are also active there.