print grep(/ 1$/,<>)?Yes:No