Version 1 of merge with prototype.

For F2F: http://www.topcoder.com/challenge-details/30045507/?type=develop&nocache=true