#include <string>
#include <vector>
using namespace std;
vector<int> solution(vector<string> wallpaper) {
vector<int> answer;
pair <int, int> start(51, 51), end(0, 0);
for(int i=0; i<wallpaper.size(); i++) {
for(int j=0; j<wallpaper[i].size(); j++) {
if(wallpaper[i][j] == '#') {
start.first = min(i, start.first);
start.second = min(j, start.second);
end.first = max(i, end.first);
end.second = max(j, end.second);
}
}
}
answer.push_back(start.first);
answer.push_back(start.second);
answer.push_back(end.first + 1);
answer.push_back(end.second + 1);
return answer;
}