#include <bits/stdc++.h>
using namespace std;
const long long int mod = (long long int)(998244353);
long long int test = 1;
vector<long long int> read(int n) {
  vector<long long int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  return v;
}
void solve() {
  long long int i, j, k, m, n, cnt = 0, ans = 0, sum = 0;
  char a[4][4];
  for (long long int i = 0; i <= 3; i++) {
    for (long long int j = 0; j <= 3; j++) {
      cin >> a[i][j];
    }
  }
  for (long long int i = 0; i <= 2; i++) {
    for (long long int j = 0; j <= 2; j++) {
      cnt = 0;
      sum = 0;
      cnt += a[i][j] == '#';
      cnt += a[i + 1][j] == '#';
      cnt += a[i][j + 1] == '#';
      cnt += a[i + 1][j + 1] == '#';
      sum += a[i][j] == '.';
      sum += a[i + 1][j] == '.';
      sum += a[i][j + 1] == '.';
      sum += a[i + 1][j + 1] == '.';
      if (cnt >= 3 || sum >= 3) {
        cout << "YES\n";
        return;
      }
    }
  }
  cout << "NO\n";
  test++;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int i = 1;
  solve();
  return 0;
}
