// Collection of code snippets by Arne VajhÃ¸j 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.io.UnsupportedEncodingException;
import java.util.Scanner;

public class DK {
    public static void main(String[] args) throws UnsupportedEncodingException {
        Scanner scn = new Scanner(System.in);
        String s = scn.nextLine();
        System.out.println(s);
        String s2 = s.replace("æ", "ae").replace("ø", "oe").replace("å", "aa");
        System.out.println(s2);
        String s3 = new String(s.getBytes(), "CP850");
        System.out.println(s3);
        String s4 = s3.replace("æ", "ae").replace("ø", "oe").replace("å", "aa");
        System.out.println(s4);
    }
}
