import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
String str=sc.next();
char ch;
Ch=str.charAt(0);
if(ch>=97 && ch<=122){
System.out.println(str.toLowerCase());
}
else if(ch>=65 && ch<=97){
System.out.println(str.toUpperCase());
}
else{
System.out.println("Invalid");
}
}
}
what s wrong with my code can u pls give me some hint