Trailing by 418 , India were bowled out for 328 in their second innings on the third day despite fighting half-centuries from former captain Sourav Ganguly ( 87 ) and wicket-keeper Mahendra Singh Dhoni ( 52 ) .