const m=1e9+7,s=' !';*a="M#O9`7p%?y";long n,x;main(){scanf("%ld",&n);for(n