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```