#include using namespace std; using ll = long long; const ll MOD = 1000000007; using P = pair; #define rep(i, n) for(int i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() int main(){ string s; cin >> s; vector cnt(8,0); int n = s.size(); reverse(all(s)); int now = 0; rep(i,(n+3)/4){ int p = 0; for(int j=0;now