You have three brothers named A, B, and C. You know who is older or younger based on three symbols (< or >). Your task is to find out which brother is the second oldest.
Input: '< < <'
'< < <'
Output: B
B
Input: '< < >'
'< < >'
Output: C
C