using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var inp = int.Parse(Console.ReadLine()); var ans = Math.Pow((inp -1), 2); Console.WriteLine(ans); } }