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.
Kontakt
W razie problemów technicznych ze Szkopułem, prosimy o kontakt mailowy pod adresem szkopul@fri.edu.pl.
Jeśli chciałbyś porozmawiać o zadaniach, rozwiązaniach lub problemach technicznych, odwiedź nasze serwery na Discordzie. Są one moderowane przez społeczność, ale członkowie zespołu wsparcia również aktywnie się tam udzielają.