func main() var s: [][]char :: #[3][]char for i(0, 2) do s[i] :: cui@input() end for var ans: bool :: true for i(0, 1) for j(0, 1) if(s[i][j] = s[i + 1][j] | s[i][j] = s[i][j + 1]) do ans :: false break i end if end for end for do cui@print((ans ?("Yes", "No")) ~ "\n") end func