#include<bits/stdc++.h> using namespace std; int a,s,d,f; int main(){ cin>>a>>s>>d>>f; cout<<a+s+d+f; return 0; }