public static void main(String args[])
{
String s="1we12";
try{
int n = Integer.parseInt(s);
System.out.println("Yes");
}catch(Exception e){
System.out.print("NO");
}}
{
String s="1we12";
try{
int n = Integer.parseInt(s);
System.out.println("Yes");
}catch(Exception e){
System.out.print("NO");
}}
String str1 = "abde12";
System.out.println(str.matches("([0-9]+)"));
System.out.println(str1.matches("[a-zA-Z]+")