package main import . "fmt" func main() { var x,y,z int64 Scan(&x,&y,&z) if y<=z { z-- } if x<=z { z-- } Println(z) }