#include <bits/stdc++.h> using namespace std; int main() { int x; int cnt = 0; while (cin >> x) { cnt++; if (x == 250) { cout << cnt; break; } } return 0; }