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