Site Score
Time limit1sMemory limit1024 MB
Read four integers UR, TR, UO, TO and print 56UR + 24TR + 14UO + 6TO.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Teams from various universities compete in ICPC regional contests for tickets to the ICPC World Finals. The number of tickets allocated to each regional contest may differ. The allocation method in our super region, Asia Pacific, is based on a parameter called site score.
Site scores count only teams and universities that solve at least one problem, in the regional contest or its preliminary contest TOPC. In 2020, the formula for the site score of the Taipei-Hsinchu regional contest is much simpler than in past years. Let
- UR be the number of universities solving at least one problem in the regional contest.
- TR be the number of teams solving at least one problem in the regional contest.
- UO be the number of universities solving at least one problem in TOPC.
- TO be the number of teams solving at least one problem in TOPC.
The site score of the 2020 Taipei-Hsinchu regional contest is 56UR + 24TR + 14UO + 6TO. Write a program to compute the site score of the 2020 Taipei-Hsinchu regional contest.
Input
The input has one line containing four blank-separated positive integers UR, TR, UO, and TO.
Output
Output the site score of the 2020 Taipei-Hsinchu regional contest.
Constraints
- 0 < UR ≤ TR ≤ 120
- 0 < UO ≤ TO ≤ 1000
Hint
The problem statement is fiction. The real site score uses a different formula.