// Call of Duty Zombies Insta-Kill Round Calculator
// author: R.B. (Reddit: DeadWireAintThatBad, YouTube: Red Baron 181)

#include <iostream>

int main() {
	
	// int is 32-bit signed, which is the data type used for health in id Tech 3
	// round 1 health is 150
	int health = 150;
	
	// round limit, this constant is used only to prevent an infinite loop
	const int rlimit = 301;
	
	// health increases by +100 every round from 2 until 9
	for(int rnd = 2; rnd <= 9; rnd++)
		health += 100;
	
	// health increases by x1.1 every round from 10 onwards
	for(int rnd = 10; rnd <= rlimit; rnd++) {
		
		// this expression is used to avoid floating-point arithmetic
		// x + x/10 = x + 0.1x = 1.1x
		health += health / 10;
		
		// if health overflows to negative, it's an insta-kill round
		// std::cout outputs the round number to stdout
		if(health < 0)
			std::cout << rnd << '\n';
			
	}
	
	// exit program
	return 0;
	
}
