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