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.
board = []
for data in range(4):
    board.append(input("").split())

# [0][0]  [0][1]  [0][2]  [0][3]
#   #        #      #       #
# [1][0]  [1][1]  [1][2]  [1][3]
#    .       #       .       .
# [2][0]  [2][1]  [2][2]  [2][3]
#    .       .       .       .
# [3][0]  [3][1]  [3][2]  [3][3]
#   #        #      #       #
#
# look at the whole board and see if there are 3 of the same char in one 2 x 2
#     loop through 2x2 parts of the board (there are only 9)

def function_test():
    res = 0
    for row in range(3):
        for col in range(3):
            #SQUERE 0
            cell_0 = board[row][0][col]
            if cell_0 == ".":
                res -= 1
            elif cell_0 == "#":
                res += 1

            #SQUERE 1
            cell_1 = board[row][0][col+1]
            if cell_1 == ".":
                res -= 1
            elif cell_1 == "#":
                res += 1

            #SQUERE 2
            cell_2 = board[row+1][0][col]
            if cell_2 == ".":
                res -= 1
            elif cell_2 == "#":
                res += 1

            #SQUERE 3
            cell_3 = board[row+1][0][col+1]
            if cell_3 == ".":
                res -= 1
            elif cell_3 == "#":
                res += 1

            if res == 2 or res == -2: #testing if the squres have 3 of the same caracter
                return True
            else:
                res = 0

if function_test():
    print("YES")
else:
    print("NO")
