The setw() is irrelevant here. (For an input stream it is only relevant for a c-string or string).
You asked to input ONE integer. So, regardless of how many you put on the line, that is all you got. Stream extraction stopped at the first whitespace (here, just a space).
The numbers 450 and 340 are, however, still left in the stream. Further cin >> statements will extract them, one by one.