<?php
function tooLong($word)
{
if ($length > 10)
{
$length -= 2;
return $firstLetter.$length.$lastLetter."\n";
}
else
return $word."\n";
}
PD9waHAKZnVuY3Rpb24gdG9vTG9uZygkd29yZCkKewoJJGxlbmd0aCA9IG1iX3N0cmxlbigkd29yZCwgJ1VURi04Jyk7CglpZiAoJGxlbmd0aCA+IDEwKQoJewoJCgkkbGVuZ3RoIC09IDI7CgkkZmlyc3RMZXR0ZXIgPSBtYl9zdWJzdHIoJHdvcmQsIDAsIDEpOwoJJGxhc3RMZXR0ZXIgPSBtYl9zdWJzdHIoJHdvcmQsIC0xKTsKCXJldHVybiAkZmlyc3RMZXR0ZXIuJGxlbmd0aC4kbGFzdExldHRlci4iXG4iOwoJfQoJZWxzZSAKCXJldHVybiAkd29yZC4iXG4iOwoJCn0=