Runtime error in OJUMPS - please help

This morning Chef wants to jump a little. In a few minutes he will arrive at the point 0 . Then he will perform a lot of jumps in such a sequence: 1 -jump, 2 -jump, 3 -jump, 1 -jump, 2 -jump, 3 -jump, 1 -jump, and so on.

1 -jump means that if Chef is at the point x , he will jump to the point x+1 .

2 -jump means that if Chef is at the point x , he will jump to the point x+2 .

3 -jump means that if Chef is at the point x , he will jump to the point x+3 .

Before the start Chef asks you: will he arrive at the point a after some number of jumps?

    a= int(input())
    t = int(a//6)+1
    l = [1,2,3]*t
    s = 0
    for i in l:
        s+=i
        if s>=a:
            break
        else: 
            continue
    if s == a:
        print('yes')
    else:
        print('no')
except EOFError:
    pass```

Please Format your code.
Also please link the question.

Yeah sorry about that, I have formatted my code. And here is the link to the question

Thank you.

according to constraints 0<=a<=10**18, so declaring an array of size a/6 is causing runtime error,