#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
int main() {
  int a, b, c;
  string s;
  cin >> a;
  cin >> b;
  cin >> c;
  cin >> s;
  cout << a + b + c << " " << s << endl;
  return 0;
}
