class Solution:
def clumsy(self, n: int) -> int:
if n <= 3:
return [1,2,6][n-1]
def getSum(n):
if n <= 3:
return [0,1,2,6][n]
return n*(n-1)//(n-2) - (n-3) + getSum(n-4)
return n*(n-1)//(n-2) + (n-3) - getSum(n-4)