#include <bits/stdc++.h>
using namespace std;
void in_out_std() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  in_out_std();
  char a[4][4];
  for (int i = 0; i < 4; ++i)
    for (int j = 0; j < 4; ++j) cin >> a[i][j];
  for (int i = 0; i < 3; ++i) {
    for (int j = 0; j < 3; ++j) {
      int k = (a[i][j] == '.') + (a[i][j + 1] == '.') + (a[i + 1][j] == '.') +
              (a[i + 1][j + 1] == '.');
      if (k != 2) {
        cout << "YES" << '\n';
        return 0;
      }
    }
  }
  cout << "NO" << '\n';
  return 0;
}
