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