text: countries = input().split(", ")
  capitals = input().split(", ")
  countries_and_capitals = {country: capital for country, capital in zip(countries, capitals)}
  [print(f"{country} -> {capital}") for country, capital in countries_and_capitals.items()]
  