initial the script for problem 27