def main(a) a[0] == a[-1] ? "Yes" : "No" end def start puts(main(gets.split)) end start