def main(): n = int(input()) print((n - 1) * (n - 1)) if __name__ == "__main__": main()