• For Solution

Chef opened a company which manufactures cars and bikes. Each car requires 44 tyres while each bike requires 22 tyres. Chef has a total of NN tyres (NN is even). He wants to manufacture maximum number of cars from these tyres and then manufacture bikes from the remaining tyres.

Chef’s friend went to Chef to purchase a bike. If Chef’s company has manufactured even a single bike then Chef’s friend will be able to purchase it.

Determine whether he will be able to purchase the bike or not.

Cars and Bikes solution codechef-

• The first line contains an integer TT denoting the number of test cases. The TT test cases then follow.
• The first line of each test case contains an integer NN denoting the number of tyres.

Cars and Bikes solution codechef-

For each test case, output YES or NO depending on whether Chef’s friend will be able to purchase the bike or not. Output is case insensitive.

Constraints

• 1T1001≤T≤100
• 2N10002≤N≤1000
• NN is even

Cars and Bikes solution codechef-

3
8
2
6


Sample Output 1

NO
YES
YES


Explanation

• For the first test case Chef, will manufacture 22 cars and will thus use all the 88 tyres and thus could not manufacture any bike.

• For the second test case, Chef cannot manufacture any car since there are not enough tyres and will thus manufacture only a single bike which will be purchased by Chef’s friend.

• For the third test case, Chef will manufacture 11 car and thus use 44 tyres. From the remaining 22 tyres, Chef can manufacture a single bike which will be purchased by Chef’s friend.