#include using namespace std; int main( ){ int B; int A = 1; bool flag = true; while(flag){ cin >> B; if (A != B) { cout << A << endl; flag = false; } A += 1; } }