exec("\nb=map(list,raw_input().split());print''"+"+max([''],*b).pop(0)"*99)*99