#include<bits/stdc++.h> using namespace std; int main() { char a,jsq=0; for(int i=0;i<8;i++){ cin>>a; if(a=='1') { jsq++; } } cout<<jsq; return 0; }
阿米诺斯