#include using namespace std; int main(){ long n,m; cin>>n>>m; atcoder::modint1000000007 ans,mul=m; int a[n-1]; for(int i=0;i>a[i]; for(int i=0;i