def yn(hantei, yes='Yes', no='No'): print(yes if hantei else no) def p(*args): print(*args) p((int(input())-1)**2)