#include <stdio.h> int main() { int sum=0,i=1; while(sum <= 2000) { sum += i; i*=2; } printf("%d",sum); }