#t124. 字符转换
字符转换
Character Transformation
Problem Description
Xiao Yang has a string of characters that may contain:
- uppercase letters, e.g. , , ;
- lowercase letters, e.g. , , ;
- digits, e.g. , , .
Now Xiao Yang wants to transform the whole string by the following rules:
- If it is an uppercase letter, change it to the corresponding lowercase letter;
- If it is a lowercase letter, change it to the corresponding uppercase letter;
- If it is a digit, change it to
*.
Please transform the whole string for him.
Input Format
The input has lines.
The first line: an integer, the number of characters in the string.
The second line: a continuous string of characters with no spaces.
Output Format
Output the transformed string.
Note: do not add spaces between the characters in the output.
Sample Input
5
aBc98
Sample Output
AbC**
Sample Explanation
In the first sample, the original string is aBc98. By the rules:
- the first character is lowercase, transformed to the corresponding uppercase ;
- the second character is uppercase, transformed to the corresponding lowercase ;
- the third character is lowercase, transformed to the corresponding uppercase ;
- the fourth character is a digit, transformed to
*; - the fifth character is a digit, transformed to
*.
So the final output is AbC**.
Constraints
The number of characters does not exceed . Each character is either an uppercase letter, a lowercase letter, or a digit.