##### Canadian Computing Competition: 2018 Stage 1, Junior #1

Here at the Concerned Citizens of Commerce (CCC), we have noted that telemarketers like to use seven-digit phone numbers where the last four digits have three properties. Looking just at the last four digits, these properties are:

- the first of these four digits is an or ;
- the last digit is an or ;
- the second and third digits are the same.

For example, if the last four digits of the telephone number are `8229`

, `8338`

, or `9008`

, these are
telemarketer numbers.

Write a program to decide if a telephone number is a telemarketer number or not, based on the last four digits. If the number is not a telemarketer number, we should answer the phone, and otherwise, we should ignore it.

#### Input Specification

The input will be lines where each line contains exactly one digit in the range from to .

#### Output Specification

Output either `ignore`

if the number matches the pattern for a telemarketer number; otherwise,
output `answer`

.

#### Sample Input 1

```
9
6
6
8
```

#### Sample Output 1

`ignore`

#### Explanation for Sample Output 1

The first digit is , the last digit is , and the second and third digit are both , so this is a telemarketer number.

#### Sample Input 2

```
5
6
6
8
```

#### Sample Output 2

`answer`

#### Explanation for Sample Output 2

The first digit is , and so this is not a telemarketer number.

## Comments

My code does not run!

May someone please help me?

n = int(input())

n1 = int(input())

n2 = int(input())

n3 = int(input())

if n == 8 or n == 9: if n1 == n2: if n3 == 8 or n3 == 9: print("ignore") if n1 == n2: print("ignore") else: print("answer")

read the instructions properly is it first number is equal to second?

but n is my first number

n1 is my second and n2 is my third

but thanks for trying to help me

when i write my code, it does not run the rest of the test cases

can someone tell me what is goin on

In some cases, if you do not pass the first batch, they will not test your code on later batches. This is mostly for non-subtask specific problems. Once your code passes the first batch, it will be tested on the next one.

Hope this helps.

ty

(this is also called short circuiting) as in for your code you forgot to add 2 pairs of brackets somewhere

Ty

This comment is hidden due to too much negative feedback. Show it anyway.

NO

Please do not use the comments section to ask for help. To ask for help, join the DMOJ Discord. Ensure you follow the help guidelines when asking.

So I wanted to see if capitalization counts. It does. Beware, unsuspecting CCC users!

Man spelling counts! Couldn't get this 3 pointer cause I wrote ingore instead of ignore. And i dint realize for the longest time.

I had the same problem, except I was using "Ignore" and "Answer" instead of "ignore" and "answer". Case sensitivity is a killer here.

Misread a part of the question.

This comment is hidden due to too much negative feedback. Show it anyway.

Note that:

is when the first and last digits are eitherignore8or9and the two of the middle are the same, notanswerThat may be the problem

Also, you should probably read the question again because your if statements are wrong

Considering that:

Perhaps you should check over your code.

This comment is hidden due to too much negative feedback. Show it anyway.

This comment is hidden due to too much negative feedback. Show it anyway.