This question already has an answer here:
I will arrive at Terminal B at 12:30 PM via a Lufthansa flight from India after taking a stopover in Munich.And my next flight is from Terminal A at 16:59 to Indianapolis. Considering this is my first time to US, I will have to collect my baggages when I arrive at B, go through immigration, check my luggages back in and then hop on to the Airtrain and reach A. Given the time period, will it be enough for a smooth transit? Just so you know, this will be one single ticket.