import sys
def input_int():
while True:
x = input()
try:
x = float(x)
if int(x)==float(x):
return int(x)
print("件數應該整數,請重新輸入")
continue
except:
print("請勿輸入非數字之文字,請重新輸入")
continue
print("請輸入總件數:")
totalpkg = input_int()
aW1wb3J0IHN5cwoKZGVmIGlucHV0X2ludCgpOgogICAgICAgIHdoaWxlIFRydWU6CiAgICAgICAgCXggPSBpbnB1dCgpCiAgICAgICAgCXRyeToKICAgICAgICAJCXggPSBmbG9hdCh4KQogICAgICAgIAkJaWYgaW50KHgpPT1mbG9hdCh4KToKICAgICAgICAJCQlyZXR1cm4gaW50KHgpCiAgICAgICAgCQlwcmludCgi5Lu25pW45oeJ6Kmy5pW05pW477yM6KuL6YeN5paw6Ly45YWlIikKICAgICAgICAJCWNvbnRpbnVlCiAgICAgICAgCWV4Y2VwdDoKICAgICAgICAJCXByaW50KCLoq4vli7/ovLjlhaXpnZ7mlbjlrZfkuYvmloflrZfvvIzoq4vph43mlrDovLjlhaUiKQogICAgICAgIAkJY29udGludWUKcHJpbnQoIuiri+i8uOWFpee4veS7tuaVuO+8miIpCnRvdGFscGtnID0gaW5wdXRfaW50KCk=