#include <bits/stdc++.h>
using namespace std;
char a[10][10];
int A, B;
int main() {
  for (int i = 1; i <= 4; ++i)
    for (int j = 1; j <= 4; ++j) cin >> a[i][j];
  for (int i = 1; i <= 3; ++i) {
    for (int j = 1; j <= 3; ++j) {
      A = B = 0;
      if (a[i][j] == '#')
        A++;
      else
        B++;
      if (a[i + 1][j] == '#')
        A++;
      else
        B++;
      if (a[i][j + 1] == '#')
        A++;
      else
        B++;
      if (a[i + 1][j + 1] == '#')
        A++;
      else
        B++;
      if (A <= 1 || B <= 1) {
        puts("YES");
        return 0;
      }
    }
  }
  puts("NO");
}
