#50354: cpp 超級簡單解


1121232@stu.wghs.tp.edu.tw (Ian911436)


#include <bits/stdc++.h>
using namespace std;

int main() {
    long long int a, b, c, d;
    while(cin >> a >> b >> c >> d){
        cout << (a+c)-(b+d) << endl;
    }
    return 0;
}