N-ary System