#include #define REP(i,n) for(int i=0,i##_len=int(n);i>N; vector A(N); constexpr int mod = 1e9+7; REP(i,N) cin>>A[i]; REP(i,N-1) { vector B(N-i-1); REP(j,N-i-1){ B[j] = A[j] + A[j+1]; B[j] %= mod; } A=B; } cout<