import std.algorithm,
       std.string,
       std.array,
       std.range,
       std.stdio,
       std.conv;

void main() {
  string s = readln.chomp;

  writeln(s[0], s[1..$-1].length, s[$-1]);
}
