#include <bits/stdc++.h>
using namespace std;
int main() {
  char iq[4][4];
  int dot = 0, hsh = 0;
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 4; j++) cin >> iq[i][j];
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      dot = 0, hsh = 0;
      if (i + 1 < 4 && j + 1 < 4) {
        if (iq[i][j] == '.')
          dot++;
        else
          hsh++;
        if (iq[i + 1][j] == '.')
          dot++;
        else
          hsh++;
        if (iq[i][j + 1] == '.')
          dot++;
        else
          hsh++;
        if (iq[i + 1][j + 1] == '.')
          dot++;
        else
          hsh++;
      }
      if ((dot == 1 && hsh == 3) || (dot == 3 && hsh == 1) || dot == 4 ||
          hsh == 4) {
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
