'use strict';
(function(input){
  
  const compare=Symbol();
  
  Array.prototype[compare]=function(){
    const S=this[0];
    const T=this[1];
    return S.
    reduce(
      (a,c,i)=>a&&(c===T[i]),
      true
    );
  }
  
  const result=input.
  split(/\s+/).
  map(str=>str.split(''))[compare]();
  
  console.log(result?'Yes':'No');
  
})(require('fs').readFilesync('/dev/stdin','utf-8'));

