sS padWithEmptyLines(S s, int n) { int x = countLines(s); ret x >= n ? s : s + rep('\n', n-x); }