Create 504.5.23

http://community.topcoder.com/stat?c=problem_statement&pm=11433