Twisted Circuit
题意翻译
读入四个整数 $0$ 或者 $1$,作为如图所示的电路图的输入。请输出按照电路图运算后的结果。
感谢@PC_DOS 提供的翻译
题目描述
![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF784E/03bc9ecd826bed4c1045a0a976af29d4edaea871.png)
输入输出格式
输入格式
The input consists of four lines, each line containing a single digit 0 or 1.
输出格式
Output a single digit, 0 or 1.
输入输出样例
输入样例 #1
0
1
1
0
输出样例 #1
0