n = read_line.to_i ans = 0 0.to(n) { |i| 0.to(n) { |j| ans += 1 if i + j <= n } } puts ans