using System;

class Program {
    static char HexDigit(int n) {
        return (char)(n <= 9 ? '0' + n : 'A' + (n - 10));
    }

    [STAThread]
    static void Main() {
        string text = System.Windows.Forms.Clipboard.GetText();
        Console.Write("\"");
        for (int i = 0; i < text.Length; i++) {
            char c = text[i];
            if (32 <= c && c <= 126)
                Console.Write(c);
            else {
                Console.Write("\\x");
                Console.Write(HexDigit(c >> 4));
                Console.Write(HexDigit(c & 15));
            }
        }
        Console.WriteLine("\"");
    }
}