for(o=t='';l=readline();)for(i in'`'>l&&l)t=t<<6|l.charCodeAt(-~i)-32&63,i&3?o+=String.fromCharCode(t>>6-i%4*2):0 print(o)