Thermodynamics of the ideal overlap quarks on the lattice