public class AufgabeDa {
	public static void main(String args[]){
		boolean x =true;
		boolean y = false;
		boolean z = true;
		boolean w = !(x || y) & z | (x && !y) ^ !z;
		System.out.println(w);
	}
}