// #region enum Input { static func int() -> Int { Int(readLine()!)! } } extension Bool { func print(yes: T, no: T) { Swift.print(self ? yes : no) } } // #endregion let n = Input.int() (n < 1200).print(yes: "green", no: "difficult")