class stopException extends RuntimeException {
int a;
stopException(int a){
this.a=a;
}
}
class Solution {
public int Test(int a) {
try{
test(a);
}catch (stopException e){
return e.a;
}
return a;
}
void test(int a){
if(true)
throw new stopException(a);
else
test(a);
}
}