both ways?
Both ways are OK. "Co za niespodzianka" seems to be older form.
There is other chemistry form:
Ale siara! [What a sulfur!] = What a shame! However formally: siara=beestings, siarka=sulfur.
I myself like the most:
Ale sajgon! [What a Saigon] = What a mess!