#include <bits/stdc++.h>
using namespace std;
char s[4][4];
int main() {
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) cin >> s[i][j];
  }
  bool flag = false;
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      int nw = 0;
      for (int m = 0; m < 2; m++) {
        for (int n = 0; n < 2; n++) {
          if (s[i + m][j + n] == '.') nw++;
        }
      }
      if (nw != 2) {
        flag = true;
        break;
      }
    }
  }
  cout << (flag ? "YES" : "NO") << endl;
  return 0;
}
