SER8

#include<iostream>
using namespace std;

int main() {
int t,a,temp,f=0;
cin>>t;

for(int i=0;i<t;i++)
{
    cin>>a;
    f=0;
    temp=a;
    while(a)
        {
           
            if(a%100==21)
            {cout<<"The streak is broken!"<<endl;f=1;break;}
            a=a/10;
        }
        if(f==1)continue;
    if(temp%21==0)
    {
        cout<<"The streak is broken!"<<endl;
    }
   
    else
        cout<<"The streak lives still in our heart!"<<endl;
}
  return 0;
}

2 comments:

SRM ELAB SOLUTUONS   DATA-STRUCTURE                                                                             **IF THE PROGRAM DON...