Yeongil's Ideal Type
Time limit1sMemory limit512 MB
Given Yeongil's four-letter MBTI type, print the type in which each of the four letters is flipped to its opposite.
- Level
Easy1 of 10
- Topics
- String, Implementation, Brute force
- Solved
- No attempts yet
Problem
Yeongil, who is about to graduate, feels lonelier as Christmas approaches.
For Yeongil's sake, Dongwoo does not set up a blind date, but instead helps Yeongil find an ideal match.
Yeongil, a firm believer in MBTI, is attracted to someone who is the exact opposite of himself. That is, someone whose four MBTI letters are all opposite to his own is Yeongil's ideal type.
MBTI describes personality along the following four scales. Each scale consists of two opposing traits.
Each of the four scales has two possibilities, so 16 types are formed in total. A type is written as four letters, one taken from the alphabet letter for each case. The following are the MBTI types.
Help Yeongil find his ideal match without trouble!
Input
Yeongil's four-letter MBTI type is given in uppercase.
Output
Print the four-letter MBTI type of Yeongil's ideal match in uppercase.
Hint
MBTI is short for Myers-Briggs Type Indicator.