 Dostoevsky's immediate ancestors on his mother's side were merchants; the male line on his father's side were priests.Andriy Dostoevsky, the writer's grandfather, was a priest in 1782-1820, signed in Ukrainian - "Andriy".After him, his son Lev ruled in Viitovtsi (1820–1829).