# 分頁顯示 divmod(被除數(shù),除數(shù))
INFO_LIST = []
for i in range(836):
    template = "第%s天,笨笨先僧 always be there with you" % i,
    # print(template)
    INFO_LIST.append(template)

per_page_count = 10
total_page, rem = divmod(836, per_page_count)
if rem > 0:
    total_page = total_page + 1

# 計算出總頁數(shù)
# 輸入頁數(shù)  顯示
while True:
    val = input("請輸入頁數(shù):")
    
    val = int(val)
    if val>total_page_count or val<1
    start = (val - 1) * per_page_count
    end = val * per_page_count
    for ele in range(start, end):
        print(INFO_LIST[ele])