import java.util.*; class test{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String A = sc.next(); char[] a = A.toCharArray(); String B = sc.next(); char[] b = B.toCharArray(); String str = "YES"; for(int i=0; i