Both countries worked frantically to produce the first hydrogen bomb. 