#!/usr/bin/python3
import sweecrypt
from sys import argv
if argv[3][:2] == "-s":
print(sweecrypt.decrypt(" ".join(argv[4:]), int(argv[3][2:])))
else:
print(sweecrypt.decrypt(" ".join(argv[3:])))