#include using namespace std; typedef long long ll; #define all(x) (x).begin(),(x).end() const int mod=1000000007,MAX=1<<17,INF=1<<30; int main(){ string S; bool ok=true; getline(cin,S); for(int i=0;i