| Турнир Архимеда 2021 |
|---|
| Finished |
Your friend Mitrofan's window has blinds made of $$$n$$$ plates ($$$1 \leqslant n \leqslant 12$$$). Each plate can be opened or closed. Initially, all plates are open. There are three buttons on the blinds: red, blue and black.
It is not known why Mitrofan did not please you, but now you most of all want to know what is the minimal number of button presses needed to break the blinds.
The single line contains the number $$$n$$$, the number of plates in the blinds ($$$1\leqslant n \leqslant 12$$$).
Print a single integer, the minimal number of button presses needed to break the blinds.
2
3
3
5
| Name |
|---|


