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