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