Long ago, Nastya Shorokhova’s great-grandmother, Anna, rejected Lieutenant Shestakov, who cursed her. He predicted that all men who fell in love with Anna’s heiress would die young. The curse came true again and again.
When businessman Fadeev fell in love with Mademoiselle Shorokhova, she warned him about the curse. But Fadeev didn’t believe her, thinking she had an enemy, and turned for help to a detective agency.
One day, Polina was invited to stay in a luxurious country house while the owner rested. However, on the very first night, Polina saw a ghost outside the window. She ran into the garden to her neighbor, Nikiphorov the mathematician, who wasn’t asleep and was proving his theorem. He helped her deal with the ghosts, but then strange people began to follow her.