#include <iostream> using namespace std; int main(){ int q,w,e,r; cin>>q>>w>>e>>r; cout<<q+w+e+r; return 0; }