 And so, some very smart people went to work solving the problem. It took thousands of hours and millions of dollars, but in the end, they developed a pen that would write anywhere, in any temperature and on nearly any surface. But how did the astronauts and cosmonauts get along until the problem was solved? Well, they simply used a pencil.