#include <bits/stdc++.h>
using namespace std;
int r[4][4];
bool pr(int x) {
  bool f = 0;
  for (int i = 0; i < 3; ++i) {
    for (int j = 0; j < 3; ++j) {
      if (r[i][j] == r[i][j + 1] && r[i][j] == r[i + 1][j] &&
          r[i][j] == r[i + 1][j + 1]) {
        f = 1;
        break;
        break;
      }
    }
  }
  return f;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < 4; ++j) {
      char by;
      cin >> by;
      if (by == '#') {
        r[i][j] = 1;
      } else {
        r[i][j] = 0;
      }
    }
  }
  if (pr(2) == 1) {
    cout << "YES";
    return 0;
  }
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < 4; ++j) {
      if (r[i][j] == 0) {
        r[i][j] = 1;
        if (pr(2) == 1) {
          cout << "YES";
          return 0;
        } else {
          r[i][j] = 0;
        }
      } else {
        r[i][j] = 0;
        if (pr(2) == 1) {
          cout << "YES";
          return 0;
        } else {
          r[i][j] = 1;
        }
      }
    }
  }
  cout << "NO";
  return 0;
}
