#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> s; ll sum = 0; for(char c : s){ if(isdigit(c)){ ll v = c - '0'; sum += v; } } p(sum); return 0; }