Tbl = (0..13).map{|i| 1< n -Tbl[curr] else Tbl[curr] end end count end N = gets.to_i p f(N)