Assign to each letter the digit from 1 to 5 that corresponds to it, in such way that the values of the given words are fulfilled.


ACE=9
ICE=6
AIM=10


A C E I M