#include <iostream> using namespace std; int main() { int i = 1,a; while(i<=5){ cin >>a; if(a==1){ cout << i << endl; } i++; } }