public class Solution {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String url = reader.readLine();
        String[] x = url.split("\\?", 2);
        String[] x1 = x[1].split("&");
        double z = 0d;
        String y = null;
        boolean b = false;
        for (int i = 0; i < x1.length; i++)
        {
            if (x1[i].contains("obj"))
            {
                try {
                    z = Double.parseDouble((x1[i].split("=")[1]));
                    b = true;
                }
                catch (NumberFormatException e) {
                    y = x1[i];
                }
            }

            System.out.print(((x1[i].split("=", 2))[0]));
            if (i != x1.length - 1) System.out.print(" ");
        }
        System.out.println("");
        if (y != null)
        alert(y);
        else if (b)
            alert(z);

    }

    public static void alert(double value) {
        System.out.println("double: " + value);
    }

    public static void alert(String value) {
        System.out.println("String: " + value);
    }
}