public class M416Damage {
  
  private static final double CALF_DAMAGE_RATIO = 30; // Crus hit injury ratio
  
  public static void main(String[] args) {
    int numShots = 5; // Number of shots
    int targetDefense = 100; // Target Player's Defense
    
    double maxCalfDamage = calculateMaxCalfDamage(targetDefense);
    double totalCalfDamage = calculateTotalCalfDamage(maxCalfDamage, numShots);
    
    System.out.println("Maximum calf hit injury for M416：" + maxCalfDamage);
    System.out.println(numShots + "5The sum of the hits to the lower leg in each shot：" + totalCalfDamage);
  }
  
  private static double calculateMaxCalfDamage(int targetDefense) {
    // Calf hit damage is calculated based on the target player's defense and other factors
    double maxTotalDamage = 200; // Assume M416's total hit damage is 100
    double maxCalfDamage = maxTotalDamage * CALF_DAMAGE_RATIO;
    
    // Consider the target player's defense and increase the hit damage of the calf.
    maxCalfDamage -= targetDefense;
    
    if (maxCalfDamage < 0) {
      maxCalfDamage = 0; // Cannot be negative
    }
    
    return maxCalfDamage;
  }
  
  private static double calculateTotalCalfDamage(double maxCalfDamage, int numShots) {
    return maxCalfDamage * numShots;
  }
  
}
