#P12170. Hero Attack Game

    ID: 14273 Type: Default 1000ms 256MiB

Hero Attack Game

Hero Attack Game

In this game, Xiao Lan controls three heroes to attack an enemy. The enemy initially has a health of \(2025\). The heroes attack in each round as follows:

  • Hero 1: Always inflicts \(5\) damage per round.
  • Hero 2: Inflicts \(15\) damage on odd rounds and \(2\) damage on even rounds.
  • Hero 3: Attacks based on the remainder of the round number modulo \(3\):
    • If the remainder is \(1\), inflicts \(2\) damage.
    • If the remainder is \(2\), inflicts \(10\) damage.
    • If the remainder is \(0\), inflicts \(7\) damage.

The game starts on round \(1\) and continues until the enemy's health is less than or equal to zero. Note that the enemy only receives damage and does not attack back. Your task is to determine at which round the game will end.

inputFormat

There is no input for this problem.

outputFormat

Output a single integer indicating the round number when the enemy's health is reduced to \(0\) or below.

sample

93