convert deg seq to int