public static void main( String[] args )
    {
        System.out.print( "" );
        Scanner sc = new Scanner( System.in );
        String st = "";
        while( true )
        {
            st = sc.nextLine();
            if( st.contains( "quit" ) )
            {
                break;
            }
            System.out.println( parseSum( st, "x" ) );
            System.out.println( parseSum( st, "y" ) );
        }
        sc.close();
    }