Hide

Problem B
Web Page

Submissions to this problem will only be marked as accepted if they receive at least a score of 100
Languages en is
/problems/heimasida/file/statement/en/img-0001.PNG
Image taken from commons.wikimedia.org

Often there is trouble when Icelandic companies or societies need to make a web page. These days the URLs can contain Icelandic letters, but the norm is still to omit them. Of course all special characters and whitespace needs to be omitted as well.

Many of the companies who need to do this are not particularly good with technology, so you see this as an opportunity. You can offer the service of figuring out a domain name for them and charge incredible rates.

The first step is to throw out everything in the input that is not a letter or digit. Next all upper case characters need to be converted into lower case characters. All accented characters lose their accent (for example á becomes a). Finally all other Icelandic characters need to be changed. The letter ö becomes o, æ becomes ae, ð becomes d and finally þ becomes th.

Input

The input consists of a single line. This line can contain all printable ASCII characters along with the characters Á, á, Ð, ð, É, é, Í, í, Ó, ó, Ú, ú, Ý, ý, Þ, þ, Æ, æ, Ö, ö. In this list each upper case character is followed by their lower case equivalent. However, the only whitespace in the input will be spaces along with a newline character at the end. The line will be at most $100$ characters, along with a newline character.

Output

Print the domain name that corresponds to the input, based on the rules above. Also add .is at the end, and print it all on one line.

Scoring

Group

Points

Constraints

1

25

Only ASCII letters in the input.

2

25

Only ASCII characters in the input.

3

50

No further constraints.

Sample Input 1 Sample Output 1
Reykjavikurborg
reykjavikurborg.is
Sample Input 2 Sample Output 2
Stofnun *~ASCII~* unnenda
stofnunasciiunnenda.is
Sample Input 3 Sample Output 3
Keppnisforritunarfélag Íslands
keppnisforritunarfelagislands.is

Please log in to submit a solution to this problem

Log in