import sys input = sys.stdin.readline x=int(input()) print((x-1)**2)