#include <iostream> using namespace std; int main(){ int n,a,c,k; cin>>n>>a>>c>>k; cout<<n+a+c+k; return 0; }