Prague, Vienna, Budapest or swap Budapest for Salzburg

We have 8 days in mid-November, don't mind the cold. Wondering if this itinerary could work. Never been to that part of Europe. Wondering what the best route would be?