function Main(input) {
    var num = parseFloat(input);
    if (num == 0 || num == 1 ) {
    	var s = input == '0' ? '1' : '0';
    	console.log(s);
        
    } 
    
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));