Each paper in a set of examination papers includes a grade of A, B, C, D or E. A count is to be of how many papers have grade of A and how many have grade of E. The total of both types have to be printed at the end. Assume 50 as sentinel value. Write a Pseudo Code to perform this function.