import math
def main():
print("1 is 3sin(x) - 3cos^2(x)")
print("2 is (x+1)^2+2(x+1)")
function = 1
if(function !=1 and function !=2):
print("invalid function")
return
Inp = 12
if function == 1:
print(3*math.sin(Inp)-3*(math.cos(Inp)**2))
else:
print((Inp+1)**2+2*(Inp+1))
main()
#0JrQsNGB0YzRj9C90LXQvdC60L4=
aW1wb3J0IG1hdGgKZGVmIG1haW4oKToKICAgIHByaW50KCIxIGlzIDNzaW4oeCkgLSAzY29zXjIoeCkiKQogICAgcHJpbnQoIjIgaXMgKHgrMSleMisyKHgrMSkiKQogICAgZnVuY3Rpb24gPSAxCiAgICBpZihmdW5jdGlvbiAhPTEgYW5kIGZ1bmN0aW9uICE9Mik6CiAgICAgICAgcHJpbnQoImludmFsaWQgZnVuY3Rpb24iKQogICAgICAgIHJldHVybgogICAgSW5wID0gMTIKICAgIGlmIGZ1bmN0aW9uID09IDE6CiAgICAgICAgcHJpbnQoMyptYXRoLnNpbihJbnApLTMqKG1hdGguY29zKElucCkqKjIpKQogICAgZWxzZToKICAgICAgICBwcmludCgoSW5wKzEpKioyKzIqKElucCsxKSkKbWFpbigpCiMwSnJRc05HQjBZelJqOUM5MExYUXZkQzYwTDQ9