update.py: minor fix
added code for problems 18 & 67