int i;for(string s:split(stdin,"1"))write(format("%c",(i=(int)substr(s,0,1))<1?32:3i+90+length(s)+(i>7?1:0)),none);