Input (grade 12): On 13 March 1881, following the assassination of his grandfather, Tsar Alexander II, Nicholas became Tsarevich and his father became Tsar Alexander III.
Output (grade 4): He became Tsar in 1894 after his father, Tsar Alexander III died.