codejam maxperiod1

i am adding code jam 1 for max period