#import <Foundation/Foundation.h>
#import <stdio.h>
 
@interface Solution: NSObject
+ (BOOL)isFourAdjacentWithArray: (NSArray *)array;
@end
 
@implementation Solution
+ (BOOL)isFourAdjacentWithArray: (NSArray *)array {
  if ([array count] <= 2) {
        return NO;
    }
    NSInteger countFour = 0;
    NSInteger countTwo = 0;
  	NSInteger i;
    for (i=0;i<array.count;i++) {
      	NSNumber *number = (NSNumber *)[array objectAtIndex: i];
        if (number.integerValue % 4 == 0) {
            countFour ++;
        } else if (number.integerValue == 2){
            countTwo++;
        }
    }
  	countFour += countTwo / 2;
  	NSInteger n = array.count;
  	return n - (countFour * 2 + 1) <= 0;
}  
@end
int main(int argc, char **argv) {
  int N;
  scanf("%d", &N);
  NSMutableArray *array = [NSMutableArray new];
  NSInteger i;
  for(i=0; i < N; i++) {
    int v;
    scanf("%d", &v);
    [array addObject: [NSNumber numberWithInteger: v]];
  }
  printf("%s", [Solution isFourAdjacentWithArray: array] ? "Yes" : "No");
  return 0;
}