Pandey, Shami set up India A win