You are designing a video game of the classic shoot’em up genre. The player controls a spaceship moving in an environment that continuously scrolls from top to bottom, giving a sense of flying forward. The ship has to fight hoards of enemies to reach the end of each stage.
In this problem you have to decide how many enemies to populate each stage with. The first stage always contains 10 enemies. At each subsequent stage , the number of enemies is the minimum number divisible by such that .
The input consists of several test cases. Each test case consists of a single integer , representing the total number of stages of the game.
For each test case, a number on a single line representing the number of enemies on the last stage .
Author: Anders Jonsson
Generation: 2026-01-25T21:47:09.362Z
© Jutge.org, 2006–2026.
https://jutge.org