lenght to integer