#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  vector<string> v(4);
  for (int i = 0; i < 4; ++i) cin >> v[i];
  for (int i = 0; i + 1 < 4; ++i) {
    for (int j = 0; j + 1 < 4; ++j) {
      int cnt = 0;
      if (v[i][j] == '#') cnt++;
      if (v[i][j + 1] == '#') cnt++;
      if (v[i + 1][j] == '#') cnt++;
      if (v[i + 1][j + 1] == '#') cnt++;
      if (cnt == 4 || cnt == 3 || cnt == 1 || cnt == 0) {
        cout << "YES\n";
        return 0;
      }
    }
  }
  cout << "NO\n";
  return 0;
}
