import scala.io.StdIn._
object Main extends App {

  val wrong = Array.fill(2){readInt()}
    Array(1,2,3).find(i ⇒ !wrong.contains(i)).foreach(println)

  implicit class Scope[T](val value: T) extends AnyVal {
    def let[A](@inline func: T ⇒ A): A = func(value)
    def also(@inline func: T ⇒ Unit): T = {func(value);value}
    def minOption[A](implicit ev: T ⇒ Iterable[A], ord: Ordering[A]): Option[A] = if (value.isEmpty) None else Some(value.min)
  }
}