//OrinTill Qimid CS1A Chapter 4, P. 294, 10
//
/**************************************************************
 * Lotery ticket
 * 
 * ____________________________________________________________
 * This program will tell the user if he won the lotery or not.
 * ____________________________________________________________
 * INPUT
 * ticket   : The user ticket
 * OUTPUT
 * If the user won or lost the ticket.
 **************************************************************/
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

int main() 
{  
    const int SIZE=10;
    bool found;
    found = false;
    int ticket;
    int validNums[SIZE] = {13579, 26791, 26792, 33445, 55555,
    62483, 77777, 79422, 85647, 93121};
    cout<<"WHats your ticket number?"<<endl;
    cin>>ticket;
    for (int i = 0; i < SIZE; i++)
    {
        if (validNums[i] == ticket)
        {
            found = true;
        }
        
    }
    if (found == true)
    {
        cout<<"Congrats you are this weeks winner!!!"<<endl;
    }
    else
    {
        cout<<"Sorry thats it not please try again next time"<<endl;
    }
    

  

    return 0 ;
   }