solved 321 in mathematica.
note