If i buy an iphone 4S unlocked, which iOS will it be running out-of-the-box?

Will it still have iOS 5 after activating the phone for the first time? I love google maps, apple maps suck and i don't like how the youtube app is gone in iOS 6

Computer

It depends on who/where you buy it from. If new it will come with iOS 6.0.1, if not, then it would depend on whatever iOS the person selling it has it on.

If anything the replacement YouTube app is better than the old stock iOS version & Google Maps is also now available for iOS 6 & greater (as well as iOS 5)