#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
char s[5][5];
long long white;
signed main() {
  for (long long i = 1; i <= 4; i++)
    for (long long j = 1; j <= 4; j++) cin >> s[i][j];
  for (long long i = 1; i < 4; i++)
    for (long long j = 1; j < 4; j++) {
      white = (s[i][j] == '#') + (s[i][j + 1] == '#') + (s[i + 1][j] == '#') +
              (s[i + 1][j + 1] == '#');
      if (white != 2) {
        cout << "YES";
        return 0;
      }
    }
  cout << "NO";
}
