Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func main() {
	var total int
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		line := scanner.Text()
		strs := strings.Split(line, " ")

		for _, s := range strs {
			x, _ := strconv.Atoi(s)
			total += x
		}
	}

	fmt.Printf("%v\n", total)
}

Python: # coding: utf-8
# Your code here!

(a,b,c,d) = map(int,input().split())


sum  = a + b + c + d
print(sum)

Python: shiba = list(map(int, input().split()))

print(sum(shiba))

Python: r,b,w,g = map(int,input().split())
print(r+b+w+g)

Python: r, b, w, g = map(int, input().split())
print(r + b + w + g)

Python: print(sum(map(int,input().split())))

Python: print(sum(list(map(int,input().split()))))

Python: a,b,c,d=map(int,input().split())
print(a+b+c+d)

Python: r,b,w,g=map(int,input().split())
print(r+b+w+g)

Python: print(sum(map(int,input().split())))

Python: print(sum(list(map(int,input().split()))))

Python: r, b, w, g = map(int, input().split())
print(r + b + w + g)

Python: r,b,w,g = list(map(int, input().split()))

print(r+b+w+g)

Python: a,b,c,d=map(int,input().split())
print(a+b+c+d)

Python: a,b,c,d = map(int, input().split())
print(a+b+c+d)

Python: r, b, w, g = map(int,input().split())
print(r+b+w+g)

Python: def inu(r,b,w,g):
   return r+b+w+g
r,b,w,g=map(int,input().split())
print(inu(r,b,w,g))

Python: r, b, w, g = map(int, input().split())
print(r+b+w+g)

Python: print(sum(list(map(int, input().split()))))

Python: print(sum(list(map(int,input().split()))))

Python: n = [int(_) for _ in input().split()]
print(sum(n))

Python: L = list(map(int, input().split()))
print(sum(L))

Python: def inu(r,b,w,g):
    return r+b+w+g

r,b,w,g=map(int,input().split())
print(inu(r,b,w,g))

Python: r,b,w,g = map(int,input().split())
print(r+b+w+g)

Python: R,B,W,G=map(int,input().split())
print(R+B+W+G)

Python: l = input().split()
R=int(l[0])
B=int(l[1])
W=int(l[2])
G=int(l[3])

print(R + B + W + G)

Python: #リストに格納して合計して出力する
print(sum(list(map(int,input().split()))))

Python: 
n = [int(i) for i in input().split()]

S = 0

for i in range(len(n)):
    S = S + n[i]

print(S)

Python: x = input()
list = x.split()
sum = 0
for i in list:
    sum += int(i)
print(sum)

Python: print(sum([int(i) for i in input().split()]))

Python: print(sum(map(int,input().split())))

Python: def inu(r,b,w,g):
    return r+b+w+g

r,b,w,g=map(int,input().split())
print(inu(r,b,w,g))

Python: R, B, W, G = map(int, input().split())
print(R+B+W+G)

Python: R, B, W, G = list(map(int, input().split()))
print(R+B+W+G)

Python: r,b,g,w=map(int,input().split())
print(r+b+g+w)

Python: R,B,W,G=map(int,input().split())
def inu(R,B,W,G):
    INU=R+B+W+G
    return INU
print(inu(R,B,W,G))

Python: R,B,W,G=map(int,input().split())
print(R+B+W+G)

Python: print(sum(map(int,input().split())))

Python: R,B,W,G=map(int,input().split())
print(R+B+W+G)

Python: R,B,W,G=map(int,input().split())
print(R+B+W+G)

Python: a,b,c,d = list(int(x) for x in input().split())
print(a + b + c + d)

Python: a = [int(s) for s in input().split()]
print(sum(a))

Python: if __name__ == '__main__':

	A = map(int,input().split())

	print(sum(A))

Python: print(sum(list(map(int,input().split()))))

Python: a = list(int(x) for x in input().split())
print(sum(a))

Python: a,b,c,d = list(map(int, input().strip().split()))
print(a+b+c+d)

Python: r,b,w,g=map(int,input().split())
print(r+b+w+g)

Python: A = [int(x) for x in input().split()]
print(sum(A))

Python: R,B,W,G = map(int,input().split())
print(R+B+W+G)

Python: R, B, W,G = map(int, input().split())
print(R+B+W+G)

Python: lst=list(map(int,input().split()))
print(sum(lst))

Python: print(sum(list(map(int, input().split()))))

Python: R,B,W,G=map(int,input().split())
print(R+B+W+G)

Python: R,B,W,G = map(int,input().split())
print(R+B+W+G)

Python: ls = map(int,input().split())
print(sum(ls))

Python: def inu(r,b,w,g):
    return r+b+w+g
r,b,w,g=map(int,input().split())
print(inu(r,b,w,g))

Python: R,B,W,G=map(int,input().split())
print(R+B+W+G)

Python: # coding: utf-8
# Your code here!
R,B,W,G=map(int,input().split())

print(sum((R,B,W,G)))

Python: print(sum(list(map(int, input().split()))))

Python: R,B,W,G=map(int,input().split())
print(R+B+W+G)

Python: a,b,c,d=map(int,input().split())
print(a+b+c+d)

Python: r,b,w,g=map(int,input().split())

r+b+w+g
print(r+b+w+g)

Python: print(sum(map(int, input().split())))

Python: a,b,c,d=map(int,input().split())
print(a+b+c+d)

Python: print(sum(map(int,input().split())))

Python: r,b,w,g=map(int,input().split())
print(r+b+w+g)

Python: a,b,c,d=map(int,input().split())
print(a+b+c+d)

Python: K = list(map(int,input().split()))
print(sum(K))

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

int main() {
  int a,b,c,d;
  cin >> a >> b >> c >> d;
  cout << a+b+c+d << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG false
// sort(a.begin(), a.end(), std::greater<int>());

/*
std::vector<std::string> split(const std::string &input, char delimiter)
{
    std::istringstream stream(input);

    std::string field;
    std::vector<std::string> result;
    while (std::getline(stream, field, delimiter))
    {
        result.push_back(field);
    }
    return result;
}
*/
/*
int dfs(int foo, int timer)
{
    //foo is node number
    if (finds[foo].first != -1)
        return timer;
    finds[foo].first = ++timer;
    int result = timer;
    if (data[foo].size() != 0)
    {
        rep(i, data[foo].size())
        {
            result = dfs(data[foo][i], result);
        }
    }
    finds[foo].second = ++result;
    return result;
}
*/

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

C++: #include <stdio.h>
int main(void) {
	int R, B, W, G;
	scanf("%d", &R);
	scanf("%d", &B);
	scanf("%d", &W);
	scanf("%d", &G);
	R = R + B + W + G;
	printf("%d\n", R);
	return 0;
}

C++: #include "bits/stdc++.h"

using namespace std;

void solve()
{
    vector<int> dog(4);
    for (int &v : dog)
        cin >> v;
    cout << accumulate(dog.begin(), dog.end(), 0) << endl;
}

int main()
{
    solve();
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
#define MOD (1000000007)
#define INF (1e9)
#define INFL (1e18)

typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
template<class T>using arr=vector<vector<T>>;
template<class T>void pr(T x){cout << x << endl;}
template<class T>void prvec(vector<T>& a){rep(i, a.size()-1){cout << a[i] << " ";} cout << a[a.size()-1] << endl;}
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

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

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

C++: #include <iostream>
using namespace std;

int r, b, w, g;

int main()
{
	cin >> r >> b >> w >> g;
	cout << r + b + w + g << endl;

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
    int r;
    int b;
    int w;
    int g;
    cin >> r >> b >> w >> g;
    cout << r + b + w + g << endl;
    return 0;
}

C++: #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
    int r,g,w,b;
    cin >> r >> g >>w >> b;
    cout << r + g + w + b << endl;
    return 0;
}

/*
やっほい！
　　　　　　　やほほい！
　　　　+　　 　*
　　　 ∧∧　　. ∧∞∧　*
*　ヽ(=´ω｀)人(´ω｀*)ﾉ
　.～（ O x.） （ 　 O)～　+
。*　 　∪　　　　∪
*/