#include <bits/stdc++.h>
using namespace std;
int main() {
  char A[4][4];
  short int c1 = 0, c2 = 0, c3 = 0, c4 = 0, c5 = 0, c6 = 0, c7 = 0, c8 = 0,
            c9 = 0;
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 4; j++) cin >> A[i][j];
  for (int i = 0; i < 2; i++)
    for (int j = 0; j < 2; j++)
      if (A[i][j] == '#') c1++;
  for (int i = 0; i < 2; i++)
    for (int j = 2; j < 4; j++)
      if (A[i][j] == '#') c2++;
  for (int i = 2; i < 4; i++)
    for (int j = 0; j < 2; j++)
      if (A[i][j] == '#') c3++;
  for (int i = 2; i < 4; i++)
    for (int j = 2; j < 4; j++)
      if (A[i][j] == '#') c4++;
  for (int i = 1; i < 3; i++)
    for (int j = 1; j < 3; j++)
      if (A[i][j] == '#') c5++;
  for (int i = 0; i < 2; i++)
    for (int j = 1; j < 3; j++)
      if (A[i][j] == '#') c6++;
  for (int i = 2; i < 4; i++)
    for (int j = 1; j < 3; j++)
      if (A[i][j] == '#') c7++;
  for (int i = 1; i < 3; i++)
    for (int j = 0; j < 2; j++)
      if (A[i][j] == '#') c8++;
  for (int i = 1; i < 3; i++)
    for (int j = 2; j < 4; j++)
      if (A[i][j] == '#') c9++;
  if (c1 == 2 && c2 == 2 && c3 == 2 && c4 == 2 && c5 == 2 && c6 == 2 &&
      c7 == 2 && c8 == 2 && c9 == 2)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
  return 0;
}
