import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.nextLine();
for (int i =0; i<S.length(); i++) {
char c = S.charAt(i);
if (Character.isLowerCase(c)) {
c = Character.toUpperCase(c);
}
else if (Character.isUpperCase(c)) {
c = Character.toLowerCase(c);
}
System.out.print(c);
}
}
}
๋์๋ฌธ์ ๋ฐ๊พธ๊ธฐ
๐ฌ Character.isUpperCase(ch) ๋๋ฌธ์์ธ์ง ํ์ธ ,
๐ฌ Character.toLowerCase(ch) ์๋ฌธ์๋ก ๋ณํํฉ๋๋ค.
๐ฌ charAt ๋ฉ์๋๋ฅผ ์ฌ์ฉํ์ฌ ๋ฌธ์์ด์ ๊ฐ ๋ฌธ์๋ฅผ ๊ฐ์ ธ์ค๊ณ ํน์ ์ธ๋ฑ์ค ์์น์ ๋ฌธ์๋ฅผ ์ถ๋ ฅ