Take input as a single string and output values of variables.
Output glorious LaTeX solution.