def binary(x):
a=bin(x)
a=a[0]+a[2:]
if(len(a)==8):
return a
else:
return '0'+a
s=input()
r='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
bins=''
for i in s:
bins+=binary(ord(i))
print(bins)
temp=''
ans=''
count=0
for i in range(len(bins)):
if((i+1)%6==0):
temp+=bins[i]
ans+=r[int(temp,2)]
temp=''
else:
temp+=bins[i]
if(temp!=''):
z=6-len(temp)
temp=temp+'0'*z
ans+=r[int(temp,2)]
print(ans)
To embed this program on your website, copy the following code and paste it into your website's HTML: