#include
using namespace std;
void magical_park(char park[][100], int n, int m, int k, int s)
{
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
if (s < k)
{
cout << "no";
exit(0);
}
if (park[i][j] == '.')
{
s = s - 2;
}
else if (park[i][j] == '*')
{
s = s + 5;
}
else
{
break;
}
if (j != m - 1)
{
s--;
}
}
}
if (s >= k)
{
cout << “yes” << endl;
cout << s;
}
else
{
cout << “no”;
}
}
int main(int argc, char const *argv[])
{
int n, m;
int k, s;
cin >> m >> n >> k >> s;
char park[100][100];
if (s < k)
{
exit(0);
}
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
cin >> park[i][j];
}
}
magical_park(park, n, m, k, s);
return 0;
}