#include <bits/stdc++.h>
using namespace std;
int main() {
  const int LENGTH = 100;
  char bob[LENGTH];
  int total = 0, index;
  cout << "Enter a series of numbers in a row " << endl;
  cin >> bob;
  for (index = 0; index < LENGTH; index++) {
    total += bob[LENGTH];
  }
  cout << "The total is " << total << endl;
  system("PAUSE");
  return 0;
}
