#include <bits/stdc++.h>
using namespace std;
int main() {
  char arr[4][4], count, count2, flag = 0;
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) cin >> arr[i][j];
  }
  for (int i = 1; i < 4; i++) {
    for (int j = 1; j < 4; j++) {
      count = 0;
      count2 = 0;
      if (arr[i][j] == '#')
        count++;
      else
        count2++;
      if (arr[i][j - 1] == '#')
        count++;
      else
        count2++;
      if (arr[i - 1][j] == '#')
        count++;
      else
        count2++;
      if (arr[i - 1][j - 1] == '#')
        count++;
      else
        count2++;
      if (count > 2 || count2 > 2) flag = 1;
    }
  }
  if (flag == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
