Infinite monkey theorem

HDU - 3689