small problem of length of input