>259

try {
int cnt = Integer.parseInt(str.substring(0,3));
}catch(Exception e) {
System.out.println("数字じゃないぞタブン");
}