let str = readline().split('') let m = new Map() str.forEach(e=>{ if(m.has(e)){ m.set(e,m.get(e)+1) }else{ m.set(e,1) ...