In the city of Ultima Thule job applicants are often offered an IQ test. 

The test is as follows: the person gets a piece of squared paper with a 4 × 4 square painted on it. Some of the square's cells are painted black and others are painted white. Your task is to repaint at most one cell the other color so that the picture has a 2 × 2 square, completely consisting of cells of the same color. If the initial picture already has such a square, the person should just say so and the test will be completed. 

Your task is to write a program that determines whether it is possible to pass the test. You cannot pass the test if either repainting any cell or no action doesn't result in a 2 × 2 square, consisting of cells of the same color.
Four lines contain four characters each: the *j*-th character of the *i*-th line equals "." if the cell in the *i*-th row and the *j*-th column of the square is painted white, and "#", if the cell is black.
# from math import sqrt
# from math import sqrt
from collections import Counter
# from collections import deque
# mod=1073741824
# d=[0]*11
# for i in range(1,11):
#     for j in range(i,11,i):
#         d[j]+=1
def solve():
    l=[]
    for i in range(4):
        l.append(list(input()))
    j=0
    while j<4:
        x=l[j]
        j+=1
        y=l[j]
        j+=1
        i=0
        while i<3:
            s=x[i:i+2]+y[i:i+2]
            if s.count("#")<=1 or s.count(".")<=1:
                print("YES")
                return
            i+=1
    print("NO")










if __name__=="__main__":
    solve()

