#include <iostream>
#include <bitset>
#include <stdexcept>
using namespace std;
int main()
{
bitset<33> bs;
bs.set();
try {
bs.to_ulong();
}catch(runtime_error err) {
cout << "Exception: " << err.what() << endl;
#ifdef DEBUG
cerr << "file: " << __FILE__ << endl;
cerr << "ling: " << __LINE__ << endl;
cerr << "date: " << __DATE__ << endl;
cerr << "time: " << __TIME__ << endl;
#endif
}
return 0;
}