solve 13 & 14 by py