What number prisdent was Ulysses S. Grant?

He was the 18th president.