/* * @Description: * @Author: 多多 * @Date: 2020-10-24 22:51:24 * @LastEditTime: 2020-10-24 22:53:02 * @LastEditors: 多多 */ #include <bits/stdc++.h> using namespace std; int main() { freopen64("P5015.in", "r", stdin); ios::sync_with_stdio(false); cin.tie(0); string s; int sum = 0; while (cin >> s) { sum += s.length(); } cout << sum << endl; return 0; }