def function1(x):
    if (x == 1):
        return x
    else:
        return x * function1(x-1)

result = function1(2)
print(result)


