lge code jam Problem1 : only solved small input