gets;$><<(gets.tr(s='ACTJQ',t='1E-H').split.sort*' ').tr(t,s)