Winter
Limits: 2 sec., 256 MiB
This statement was translated automatically from Ukrainian.
Winter is just around the corner. Analysts predict that there will be power outages again.
Zenyk and Marichka do not lose spirit and have decided to prepare. They plan to buy the necessary equipment to be able to live completely autonomously: batteries, inverters, power banks, home power stations, ... They also decided to reduce electricity consumption.
After taking inventory of all electrical appliances at home, Zenyk and Marichka determined that there are three largest energy consumers: a refrigerator, a TV, and a lamp. All other electrical appliances are either much less powerful or needed much less often, so we will assume that there are only three appliances that consume energy.
The plan is as follows: we need to completely abandon the use of one of the electrical appliances in order to minimize the total electricity consumption. It is known that the refrigerator, the TV, and the lamp consume \(a\), \(b\), and \(c\) units of electricity per hour, respectively. Tell what the minimum total consumption level can be achieved if you abandon one of the three electrical appliances.
Input
The single line contains three integers \(a\), \(b\), \(c\) — the electricity consumption level of the refrigerator, the TV, and the lamp, respectively.
Output
Print a single integer — the minimum sum of two numbers out of the three given.
Output must be to the standard output stream (console). Your output
must strictly match the requirements of the problem. No additional data
should be printed. For example, if you print something like
Enter a, b, c: before reading the numbers, or
Answer for the problem: before printing the answer, you
will receive the Wrong Answer verdict.
Constraints
\(1 \le a, b, c \le 100\).
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 47 4 7 | 11 |
Notes
In the example, the refrigerator consumes 47 units of electricity per hour, the TV 4, and the lamp 7. By abandoning the refrigerator, Zenyk and Marichka will be able to achieve a consumption of 11 units of electricity per hour. Food this winter will have to be stored on the balcony.
Submit a solution
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|