L = int(input()) print((L - 1)**2)