def stair(k): global count if k == s: count += 1 return if k > s: return stair(k + 1) stair(k + 2) count = 0 s = int(input()) stair(0) print(count)