Yen firms against dollar and euro