Well if you attend classes and do "listen" to what is being taught, then half your job is done. And don't complain about "6 hours". 6 hours daily for a regular period of two years can get you into top 500. 6 hours for IITJEE preparation is more than enough on a daily basis.
I suggest you manage your time well and use the school time instead of viewing it as time wasted.