#P321. 练54.4 整数ABC

练54.4 整数ABC

Description

Given three positive integers, where the smallest is AA, the next is BB, and the largest is CC. Now, you are given a string ss of length 3. Please output the three integers in the order specified by ss.

Input Format

The first line contains three integers separated by spaces, each in the range [11, 100100].
The second line contains a string ss of length 3, consisting of the characters 'AA', 'BB', and 'CC', each appearing exactly once.

Output Format

Output the three integers in the order specified by ss, separated by spaces.

Sample

6 4 2
CAB
6 2 4