Pneumonia is the most serious problem that affects the lungs either by bacteria, viruses or fungi.