Nifty gains