Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb

This article's plot summary may be too long or excessively detailed. Please help improve it by removing unnecessary details and making it more concise. (June 2016) (Learn how and when to remove this template message)
United States Air Force Brigadier General Jack D. Ripper (Sterling Hayden) is commander of Burpelson Air Force Base, which houses the Strategic Air Command 843rd Bomb Wing, equipped with B-52 bombers and nuclear bombs. The 843rd is currently in-flight on airborne alert, two hours from their targets inside Russia.




General Ripper explains to Group Captain Mandrake how he first discovered the Communist plot to pollute Americans' "precious bodily fluids."
General Ripper orders his executive officer, Group Captain Lionel Mandrake (Peter Sellers) of the UK Royal Air Force, to put the base on alert. Ripper also issues "Wing Attack Plan R" to the patrolling aircraft, one of which is commanded by Major T. J. "King" Kong (Slim Pickens). All of the aircraft commence an attack flight on Russia and set their radios to allow communications only through the CRM 114 discriminator, which is programmed to accept only communications preceded by a secret three-letter code known only to General Ripper.
Mandrake discovers that no war order has been issued by the Pentagon and tries to stop Ripper, who locks them both in his office. Ripper tells Mandrake that he believes the Soviets have been using fluoridation of United States water supplies to pollute the "precious bodily fluids" of Americans; Mandrake now realizes that Ripper is insane.
At the Pentagon, General Buck Turgidson (George C. Scott) briefs President Merkin Muffley (also Peter Sellers) and other officers and aides about the attack in the "War Room". President Muffley is shocked to learn that such orders could be given without his authorization, but Turgidson reminds him that Plan R, enabling a senior officer to launch a strike against the Soviets if all superiors have been killed in a first strike on Washington, DC, allows such an action.
Turgidson reports that his men are trying every possible three-letter CRM code to issue the stand-down order, but that could take over two days and the planes are due to reach their targets in about an hour. Muffley orders the Army chief to storm the base and arrest General Ripper.
Turgidson attempts to convince Muffley to let the attack continue and use the element of surprise to annihilate the Soviet military altogether before they can strike back; Muffley, however, refuses to be party to a nuclear first strike. Instead, he brings Soviet ambassador Alexei de Sadeski (Peter Bull) into the War Room, to telephone Soviet premier Dimitri Kissov on the "hot line". Muffley warns the Premier of the impending attack and offers to reveal the planes' positions and targets so the Russians can protect themselves.
After a heated discussion in Russian with the Premier, the ambassador informs President Muffley that the Soviet Union has created a doomsday device, which consists of many buried bombs jacketed with "Cobalt-Thorium G" connected to a computer network set to detonate them automatically should any nuclear attack strike the country. Within two months after detonation, the Cobalt-Thorium G would encircle the earth in a radioactive cloud, wiping out all human and animal life, rendering the surface of the earth uninhabitable for 93 years. The device cannot be dismantled or "untriggered", as it is programmed to explode if any such attempt is made.
When the President's wheelchair-bound scientific advisor, former Nazi Dr. Strangelove (again, Peter Sellers), points out that such a doomsday device would only be an effective deterrent if everyone knew about it, de Sadeski replies that the Russian Premier had planned to reveal its existence to the world the following week (on the leader's birthday).
Meanwhile, United States Army forces arrive at Burpelson, which is still sealed by General Ripper's order. A bloody battle ensues, and the Army forces eventually take over the base. Ripper kills himself, fearing he will be tortured into revealing the recall code. A soldier named Colonel "Bat" Guano (Keenan Wynn) forces his way into Ripper's office, where Mandrake identifies Ripper's CRM code from his desk blotter ("OPE," a variant of both Peace on Earth and Purity of Essence).[4]
Mandrake relays this code to the Pentagon with difficulty via payphone, the only working method of communication. Using the recall code, SAC successfully recalls most of the aircraft; however, Muffley learns that a surface-to-air missile has ruptured the fuel tank of Major Kong's plane and destroyed its communications device, making it impossible to recall this particular plane even with the correct recall code.




Aircraft commander Major T. J. "King" Kong riding the bomb down.
Muffley tells the Soviets the plane's target to help them find it but does not realize that because of the shortened range of the crippled aircraft, Major Kong has selected a closer target. As the plane approaches the new target, the crew is unable to open the damaged bomb bay doors. Major Kong crimps broken electric wiring, whereupon the doors open. With Kong straddling it, the nuclear bomb falls and detonates, triggering the doomsday machine.
Dr. Strangelove recommends that the President gather several hundred thousand people to live in deep mineshafts where the radiation will not penetrate. He suggests a 10:1 female-to-male ratio for a breeding program to repopulate the Earth when the radiation has subsided. Turgidson, worried that the Soviets will do the same, warns about a "mineshaft gap" when the wheelchair-bound Strangelove suddenly stands and walks a few steps. Astonished by his new ability, he shouts: "Mein FÃ¼hrer, I can walk!" The film ends with a montage of nuclear detonations, accompanied by Vera Lynn's recording of "We'll Meet Again".

Question: Mandrake realizes who is insane?
Answer: Ripper