4301: Twisted Circuit

内存限制:256 MB 时间限制:2 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:4 通过:4

题目描述

E. Twisted Circuit

Input
The input consists of four lines, each line containing a single digit 0 or 1.
Output
Output a single digit, 0 or 1.
Example
Input
0
1
1
0
Output
0

输入格式

输入

输入由四行组成,每行包含一个数字0或1。

输出格式


输出

输出单个数字,0或1。

输入样例 复制

0
1
1
0

输出样例 复制

0