Marta (Jana Brejchová) and Viktor (Vlastimil Brodský) celebrate the tenth anniversary of their wedding half-heartedly. They both think they don't suit together. While visiting Marta's friend Alena (Iva Janzurová), who just got married for the third time, they learn an interesting thing. It was a computer which selected a husband for Alena and she claims she is happy. The couple gets off after certain hesitation to a cybernetic institute, where the computer tells them that living together is a risk for them. At the same time the computer selects them ideal partners - Mrs Tuchlová, a doctor for Viktor, and Petr Karát, a music composer for Marta. By a coincidence Viktor and Marta meet wrong people.