func main() var s: []char :: cui@input() var nums: []int :: [1, 0, 0, 0, 1, 0, 1, 0, 2, 1] var ans: int :: 1 + ^s * 2 for i(0, ^s - 1) do ans :+ nums[s[i] $ int - '0' $ int] end for do cui@print("\{ans}\n") end func