using System; class H { static void Main() => Console.WriteLine(Solve()); static object Solve() { var n = int.Parse(Console.ReadLine()); var r = 14; for (int i = 0; i < n; i++) { r /= 2; } return r; } }