#include <cstddef>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
// while (cin >> a >> b) { // 注意 while 处理多个 case
// cout << a + b << endl;
// }
string str;
if(std::getline(cin, str)){
// 从标准输入缓冲区中读入一整行的字符,包括空格
int count = 0;
for(int i =str.length() - 1; i>=0; i--){
if(str[i] == ' '){
break;
}else{
count++;
}
}
printf("%d\n",count);
}
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号