#include<bits/stdc++.h>
using namespace std;
int n,m,fx[4][2]={0,1,1,0,0,-1,-1,0},xxx,yyy,xxxx,yyyy;
char mg[2001][2001];
bool fw[2001][2001];
struct node{
int x,y,step;
}l,r;
int main(){
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cin>>mg[i][j];if(mg[i][j]'@'){xxx=i;yyy=j;}if(mg[i][j]'*'){xxxx=i;yyyy=j;}
}
}queue<node> q;
q.push({xxx,yyy,0});
fw[xxx][yyy]=true;
while(!q.empty()){
r=q.front();
q.pop();
if(r.x == xxxx && r.y == yyyy){
}
return 0;
}