<?php
$time = function($f, $m = 1000000)
{
for($n = 0; $n < $m; ++$n)
$f();
};
PD9waHAKCiR0aW1lID0gZnVuY3Rpb24oJGYsICRtID0gMTAwMDAwMCkKICB7CiAgICAkc3RhcnQgPSBtaWNyb3RpbWUodHJ1ZSk7CiAgICAKICAgIGZvcigkbiA9IDA7ICRuIDwgJG07ICsrJG4pCiAgICAgICRmKCk7CiAgICAKICAgIHJldHVybiAobWljcm90aW1lKHRydWUpIC0gJHN0YXJ0KTsKICB9OwoKCnZhcl9kdW1wKCR0aW1lKCdyYW5kJykpOwp2YXJfZHVtcCgkdGltZSgnbXRfcmFuZCcpKTs=