A two-dimensional bounce averaged Fokker-Planck code is used to study the fusion yield and the wave absorption by residual hydrogen ions in higher harmonic ICRF heating of D (120 keV) and 3He (80 keV) beams in the JT-60U tokamak. Both for the fourth harmonic resonance of 3He (ω = 4ωc3He(0), which is accompanied by the third harmonic resonance of hydrogen (ω = 3ωcH) at the low field side, and for the third harmonic resonance of 3He (ω = 4ωcD(0) = 3ωc3He(0)) = 2ωcH(0)), a few per cent of hydrogen ions are found to absorb a large fraction of the ICRF power and to degrade the fusion output power. In the latter case, D beam acceleration due to the fourth harmonic resonance in the 3He(D) regime can enhance the fusion yield more effectively. A discussion is given of the effect of D beam acceleration due to the fifth harmonic resonance (ω = 5ωcD) at the high field side in the case of ω = 4ωc3He(0) and of the optimization of the fusion yield in the case of lower electron density and higher electron temperature