from decimal import * getcontext().prec = 1000000 n = Decimal(input()) print((n + 1) * (n + 2) * (n + 3) * (n + 4) / 24)
这个玩意把我的 NTT 吊起来打。