def hurdleRace(k, height):
    # Write your code here
    return 0 if max(height) < k else max(height) - k