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