a, b, c = map(int, input().split(' '))
points = {}
points['abc'] = 3000 - 12 * a - 10 * b - 6 * c
points['cba'] = 3000 - 2 * a - 6 * b - 12 * c
points['acb'] = 3000 - 12 * a - 4 * b - 10 * c
points['cab'] = 3000 - 6 * a - 4 * b - 12 * c
maxpts = max(points.values())
for i in ['abc', 'cba', 'acb', 'cab']:
if points[i] == maxpts:
print(i)
YSwgYiwgYyA9IG1hcChpbnQsIGlucHV0KCkuc3BsaXQoJyAnKSkKcG9pbnRzID0ge30KcG9pbnRzWydhYmMnXSA9IDMwMDAgLSAxMiAqIGEgLSAxMCAqIGIgLSA2ICogYwpwb2ludHNbJ2NiYSddID0gMzAwMCAtIDIgKiBhIC0gNiAqIGIgLSAxMiAqIGMKcG9pbnRzWydhY2InXSA9IDMwMDAgLSAxMiAqIGEgLSA0ICogYiAtIDEwICogYwpwb2ludHNbJ2NhYiddID0gMzAwMCAtIDYgKiBhIC0gNCAqIGIgLSAxMiAqIGMKCm1heHB0cyA9IG1heChwb2ludHMudmFsdWVzKCkpCmZvciBpIGluIFsnYWJjJywgJ2NiYScsICdhY2InLCAnY2FiJ106CiAgICBpZiBwb2ludHNbaV0gPT0gbWF4cHRzOgogICAgICAgIHByaW50KGkpCg==