D-503, a mathematician in the one thousandth year of the One State, threatens the national security when he falls in love.