#include<cstdio>
int main(){
int n,m;
scanf("%d%d",&n,&m);
char s[12];
int x=0,y=1;
for(int i=1;i<=n;i++){
scanf("%s",s+1);
for(int j=1;j<=m;j++){
if(s[j]==\'#\'){
if((i==x&&j==y+1)||(i==x+1&&j==y)){
x=i;y=j;
}
else return 0*puts("Wrong Answer");
}
}
}
if(x!=n||y!=m)puts("Wrong Answer");
else puts("Accepted");
return 0;
}