判断两个大数是否相等
import java.util.*;
import java.math.BigDecimal;
public class Main {
public static void main(String args[]){
Scanner in = new Scanner(System.in);
while (in.hasNext()){
BigDecimal A = in.nextBigDecimal();
BigDecimal B = in.nextBigDecimal();
if (A.compareTo(B) == 0) {
System.out.println("YES");
}
else {
System.out.println("NO");
}
}
}
}