using 5 digits at most