#!/usr/bin/ruby
#codeeval57
while (h,w,l=gets.split.map(&:to_i))!=[0,0,0]
d=[[0,-1],[1,0],[0,1],[-1,0]]
d0="NESW".split('')
x=y=0
f=[];(h+2).times{f<<[1]*(w+2)}
h.times{|i|
	s=gets.chomp
	w.times{|j|
		if (k=d0.index(s[j..j]))
			x=j+1;y=i+1;d0.rotate!(k);d.rotate!(k)
		end
		if s[j..j]!='#'
			f[i+1][j+1]=nil
		end
	}
}
l.times{
	4.times{|i|
		if !f[y+d[i][1]][x+d[i][0]]
			d0.rotate!(i);d.rotate!(i)
			x+=d[0][0];y+=d[0][1]
			break
		end
	}
}
puts "#{y} #{x} #{d0[0]}"
end