Creation on InputReader, making reading of inputs using offsets
Use \G and InputReader where possible in php and c# so that new strings are not made each time using substring etc.