eyes = input() mouth = input() print('({}{}{})/'.format(eyes, mouth, eyes))