80. Cryptarithm with "ham". In the following cryptarithm, each letter stands for a decimal digit (its own for each letter):

$$
7(F R Y H A M)=6(H A M F R Y)^{*}
$$

Determine which digit each letter represents.
80. Let $F R Y=x$, and $H A M=y$; then

$$
\begin{aligned}
7(1000 x+y) & =6(1000 y+x) \\
6994 x & =5993 y \\
538 x & =461 y
\end{aligned}
$$

Since in the last equation the numerical coefficients are coprime, we get $x=F R Y=461$ and $y=H A M=538$.