📅  最后修改于: 2022-03-11 15:04:43.310000             🧑  作者: Mango
def maxProd(n):
if (n == 2 or n == 3):
return (n - 1)
res = 1
while (n > 4):
n -= 3;
res *= 3;
return (n * res)
n=int(input())
print(maxProd(10));