import java.util.*;

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 throw new ScoreException("分数不合法"); // 抛出异常
        } catch(ScoreException str) {
            System.out.println(str.getMessage());  // 输出异常
        }
        
    }
}

class ScoreException extends Exception {  // 自定义异常  继承  Exception类

  	// 构造方法
    public ScoreException(String message) {
        super(message);
    }
    

}