Longest string with a fixed number keys and keystrokes