All Submissions


Problem Description

Base32 Encoding of data involves the substitution of every 5 bits of the original data with an 8 bit pattern that will survive transportation through systems or protocols which have special restrictions on the range of characters they will accept and emerge unmodified. Similarly, Base64 encoding involves substitution of 6 bit groups instead of 5, thus being space-wise more efficient.
Your task is to convert a given Base32 Encoded String into a Base64 Encoded one.
The exact details of the two processes can be obtained from RFC 4648, under Section 4: Base 64 Encoding and Section 6: Base 32 Encoding.

Input/Output Specifications

  • Each line of input consists of a single Base32 encoded string.
  • For each input line, output a line that consists of the Base64 encoded version of the same string.
  • The length of the actual string is never greater than 1000.
  • There is no restriction on the characters that can appear appear in the actual string.

Sample Input


KNXXK4TDMVBW6ZDF
IRFA====
FZUGCY3LOJXW65BPF4======


Sample Output


U291cmNlQ29kZQ==
REo=
LmhhY2tyb290Ly8=


Problem Setter: Kaustubh Karkare

Languages: C,C++,Java

Time Limit: 1 Second(s)
Score: 100 Point(s)
Input File Limit: 50000 Bytes

Submit

Login to post clarification.

No Clarifications.

Contest

Mode Judge

Passive

Online

Overall Rankings

RankNameScore
1xyz0
2Ams0
3TIP0
4team420
5xyzz0
6asdasdasd0
7abcd0
8khankhan0
9Gabriel0
10gigel0