#include #include using namespace std; int Digit(char ch) { if (ch >= '0' && ch <= '9') return int(ch - '0'); if (ch >= 'A' && ch <= 'Z') return int(ch - 'A') + 10; return int(ch - 'a') + 36; } int main() { while (1) { string s; cin >> s; if (s == "end") break; int sum = 0; for (size_t i = 0; i < s.length(); i++) sum += Digit(s[i]); cout << (sum % 61 == 0 ? "yes" : "no") << endl; } }