#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "Rus");
int x,counter = 1, buff = -1;
do {
cin >> x;
if (x % 7 == 0) {
buff = counter;
break;
}
counter++;
} while (x != -1);
if (buff == -1)
cout << "Такого числа нет!";
else
cout << buff;
return 0;
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "Rus");
int x,counter = 1, buff = -1;
do {
cin >> x;
if (x % 7 == 0) {
buff = counter;
break;
}
counter++;
} while (x != -1);
if (buff == -1)
cout << "Такого числа нет!";
else
cout << buff;
return 0;
}