#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[20][20];
  for (int i = 1; i <= 4; i++) {
    for (int j = 1; j <= 4; j++) {
      cin >> a[i][j];
    }
  }
  int cnt = 0, cnt1 = 0, ans = 0;
  if (a[1][1] == '#')
    cnt++;
  else
    cnt1++;
  if (a[1][2] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][1] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][2] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (a[1][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[1][2] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][2] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (a[1][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[1][4] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][4] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (a[3][1] == '#')
    cnt++;
  else
    cnt1++;
  if (a[3][2] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][1] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][2] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (a[3][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[3][2] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][2] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (a[3][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[3][4] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[2][4] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (a[3][1] == '#')
    cnt++;
  else
    cnt1++;
  if (a[3][2] == '#')
    cnt++;
  else
    cnt1++;
  if (a[4][2] == '#')
    cnt++;
  else
    cnt1++;
  if (a[4][1] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (a[3][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[3][2] == '#')
    cnt++;
  else
    cnt1++;
  if (a[4][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[4][2] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (a[3][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[3][4] == '#')
    cnt++;
  else
    cnt1++;
  if (a[4][3] == '#')
    cnt++;
  else
    cnt1++;
  if (a[4][4] == '#')
    cnt++;
  else
    cnt1++;
  if ((cnt == 1 && cnt1 == 3) || (cnt1 == 1 && cnt == 3) ||
      (cnt1 == 4 || cnt == 4))
    ans++;
  cnt = 0, cnt1 = 0;
  if (ans > 0)
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
  return 0;
}
