#include<bits/stdc++.h>
using namespace std;
char s[501];
int c[10001];
int main()
{
	freopen("employ.in","r",stdin);
	freopen("employ.out","w",stdout);
	int m,n,b;
	cin>>n>>m;
	for(int i=1;i<=n;i++)
	{
		cin>>s[n];
	}
	for (int j=1;j<=n;j++)
	{
		cin>>c[n];
	}
	cout<<b%998224353<<endl;
	
}
