Magical park 628


i am unable to find where i am wrong

hi
consider your code for the following input
4 4 5 10
. . . .
. # . .


  • * *

expected output: No
your output:
Yes
17

i will send the input again


you can see the input in the input section