ENIGMA-0x03 (2025) - J2 The third lake

View as PDF

Submit solution

Points: 100 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types
Allowed languages
Blockly, C, C++, Java, Pascal, Python

The third lake

The third lake that Annoula encounters is also magical. However, it triples the objects she throws into it and adds two more. The lake, however, cannot have more than 100 pebbles at the bottom.
Can you write a program that takes as input the number of pebbles Annoula throws in and outputs the number of pebbles she sees?

Input The number of pebbles Annoula throws into the lake.

Output The number of pebbles that Annoula sees at the bottom of the lake.

Example

Input
4

Output
14


Comments

There are no comments at the moment.