#C6011. Weather Updates

    ID: 49725 Type: Default 1000ms 256MiB

Weather Updates

Weather Updates

You are given a list of city names and a list of corresponding weather data entries. Each weather data entry is a string formatted as City:Temperature:Condition.

Your task is to output for each city a weather update message. If the weather data for a city exists, print:

\(\texttt{In \{City\}, it is currently \{Temperature\} degrees and \{Condition\}.}\)

If there is no entry for that city, print:

\(\texttt{No weather data available for \{City\}.}\)

The solution should read input from stdin and write the output to stdout.

inputFormat

The input is given in the following format from stdin:

  • The first line contains an integer N, the number of cities.
  • The next N lines each contain a city name.
  • The following line contains an integer M, the number of weather data entries.
  • The next M lines each contain a weather data entry in the format City:Temperature:Condition.

outputFormat

For each city in the order they appear in the input, output one line. If the city's weather data is provided, output:

In City, it is currently Temperature degrees and Condition.

If the city's weather data is not provided, output:

No weather data available for City.

## sample
3
New York
San Francisco
Austin
5
New York:22:Sunny
Austin:33:Hot
Chicago:15:Cold
San Francisco:18:Mild
Seattle:10:Windy
In New York, it is currently 22 degrees and Sunny.

In San Francisco, it is currently 18 degrees and Mild. In Austin, it is currently 33 degrees and Hot.

</p>