#include<bits/stdc++.h> using namespace std; int main(){ int gw,sw,bw,qw,sum=0; cin>>gw>>sw>>bw>>qw; gw+sw+bw+qw=sum; cout<<sum; return 0; }