User:Dragons flight/trailingzeros/logic