public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int score = scanner.nextInt();

        try{
            if(score>=0&&score<=100){
                System.out.println(score);
            }
            else{
                  ScoreException error=new ScoreException("分数不合法");
                  error.print();
            }
        }catch(Exception e){
            e.printStackTrace();
        }
        //write your code here......
        
    }
}

class ScoreException extends Exception {
    String Exception;
    //实现构造自定义的异常处理
   ScoreException(String Exception){
       super(Exception);
       this.Exception=Exception;
   }
    
    public void print(){
        System.out.println(this.Exception);
    }
    
   
    //write your code here......
    

}