public class M416HeadshotDamageOptimizer {
  
  public static void main(String[] args) {

    int baseDamage = 41; 
    

    int maxHeadshotDamage = calculateMaxHeadshotDamage(baseDamage);
    
    System.out.println("The maximum value of head DAMAGE for M416 is：" + maxHeadshotDamage);
  }
  
  private static int calculateMaxHeadshotDamage(int baseDamage) {
    int maxHeadshotDamage = 0;
    

    for (int i = 0; i <= 100; i++) {

      int headshotDamage = baseDamage * i;
      

      if (headshotDamage > maxHeadshotDamage) {
        maxHeadshotDamage = headshotDamage;
      }
    }
    
    return maxHeadshotDamage;
  }
}
