"use strict";

function main(arg) {
    const A = arg.split("\n")[0];
    const B = arg.split("\n")[1];
    
    console.log(B.split("").reverse().join("") == A ? "Yes" : "No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));