# -*- coding:utf-8 -*-
class Solution:
def cutRope(self, number):
# write code here
if number == 2:
return 1
if number == 3:
return 2
mod = number%3
if mod == 1: # 余数为1时,应将1*3分解成2*2
return 4*(3**(number//3 - 1))
elif mod == 2:
return 2*(3**(number//3))
else:
return 3**(numbers//3)