*.*.*
close

Input

..........................%%%...*...........................................$$$$$$$$$$$$$$$$$$$$--------------------.....