using System; using System.Linq; namespace Streak { public class Streak { public static int Main() { var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); Console.WriteLine(a[2] - (a[0] <= a[2] ? 1 : 0) - (a[1] <= a[2] ? 1 : 0)); return 0; } } }