#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) long long A[28],B[28]; int n,k,p1=998,p2=998244352,t; void f(int i,int l,long long ans,long long ans1){ if(l==k){if(ans>=ans1){t++;t%=p1;}} else{ for(int j=i+1;j>n>>k; rep(i,n){cin>>A[i];B[i]=A[i]%p2;A[i]%=p1;} for(int i=0;i<=n-k;i++){ f(i,1,A[i],B[i]); } cout<