Three teachers respectively distributed 370, 430 and 580 chocolates equally among their three classes. The number of students in all the three classes was the same. That evening three students A, B, C one from each of the three classes respectively got together and shared their chocolates equally after pooling them first. The teachers also pooled their remaining chocolates, which happened to be the same number for all of them and distributed these total remaining chocolates among students of the first class on the next day. The teachers also found that the strength of the class is maximum satisfying all the above conditions. Find the total no. chocolates received by student A of the first class.