rewrite math
import string
import list