If you buy an iPhone 4s now, will it have iOS 5 or iOS 6?

I'm wondering if you buy an iPhone 4 or 4s, will it still have iOS 5 or are they somehow automatically updated?

Most likely the latest ios6 but if it has ios5, you can always uodate it to the latest version.

IOS 5
I bought an iPad 3 when iOS 6 was released already and it came with iOS 5

If you buy it from apple direct it will have ios6 but otherwise there's now way of telling whether or not it will have ios5 or ios6