Problem 02 – Decode the language of sumatra island

The inhabitants of sumatra island communicate with each other by their own language which is different from english. They never communicate directly by voice , they always communicate each other by writing in a paper by following:

image

Following character set are used for their communication purpose:

1) All lowercase(a-z) and uppercase(A-Z) english letter, – , *

2) Digits(0-9), ] , {

3) special symbols(space,comma,question marks, exclamatory sign)

‘a’ and ‘A’ as well as ‘b’ and ‘B’ are same. They wrote alphabet ‘A’ as ‘-‘ and ‘B’ as ‘*’, ‘c’ as ‘a’, ‘C’ as ‘A’, ‘z’ as ‘x’, ‘u’ as ‘s’. They wrote first two digits ‘0’ as ‘]’ and ‘1’ as ‘{‘, ‘4’ as ‘2’, ‘2’ as ‘0’ and so on but they kept unchanged special symbols as it is.

Input Format

There are a set of inputs. In each line, a decoded message ‘S’ will be given as input. Input will be terminated by EOF.

Constraints

Length of ‘S’ can not be more than 100

Output Format

You have to find out the actual message of the decoded message. See output format.

Sample Input 0

q-gdsj
CKMl
QsH-L
Qf-ig* -j F-q-l

Sample Output 0

Case 1:sAiful
Case 2:EMOn
Case 3:SuJAN
Case 4:ShAkiB Al HAsAn
Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Lean Blog by Crimson Themes.