Problem

Source: Moscow Olympiad 2018, Grade 11, P9

Tags: algebra, number theory, trigonometry



$x$ and $y$ are integer $5$-digits numbers, such that in the decimal notation, all ten digits are used exactly once. Also $\tan{x}-\tan{y}=1+\tan{x}\tan{y}$, where $x,y$ are angles in degrees. Find maximum of $x$