import java.util.Objects; import java.util.Scanner; public class checker_checker_1941 { public static void log(Object obj) { System.out.println(obj.toString()); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.next(); String p1 = "#.#"; String p2 = ".#."; if(Objects.equals(a, p1) && Objects.equals(b, p2) && Objects.equals(c, p1) || Objects.equals(a,p2) && Objects.equals(b,p1) && Objects.equals(c,p2)) { log("Yes"); } else { log("No"); } } }