#P9712. URL Identifier Generation

    ID: 22859 Type: Default 1000ms 256MiB

URL Identifier Generation

URL Identifier Generation

Little R, a cute girl, wants to connect with the problem setters by writing solutions (explanations) for problems. When she clicks the "Submit Solution" button, a URL identifier is automatically generated for the blog post. The identifier is generated by applying the following steps on the given problem number:

  • Convert all uppercase letters to lowercase.
  • Replace all underscores (_) with hyphens (-).
  • Prepend the string solution- to the result.

Given a problem number as input, your task is to output the URL identifier following the above rules.

inputFormat

The input consists of a single line containing a non-empty string representing the problem number. This string may include uppercase letters, lowercase letters, digits, and underscores.

outputFormat

Output the URL identifier generated by applying the following transformation:

  • Convert uppercase letters to lowercase.
  • Replace underscores (_) with hyphens (-).
  • Prepend solution- to the modified string.

sample

ABC_DEF
solution-abc-def