Find the number of positive integers <1000 that can be expressed as 2^k−2^m, where k and m are non-negative integers.