Yen gains sharply against US dollar