#include #include using namespace std; long m=1e9+7,dp[1<<17][4]; vectorG[1<<17]; int n,M; string s; main() { cin>>n>>M>>s; for(int i=0;i>a>>b;a--,b--; G[a].push_back(b); G[b].push_back(a); } for(int i=0;i