m = list(map(str,input()))
maru = m.count('o')
batsu = m.count('x')

if batsu > 7:
  print('NO')
else:
  print('YES') m = list(map(str,input())) m list(map(str,input())) list map(str,input()) map str input() input maru = m.count('o') maru m.count('o') m.count m count 'o' batsu = m.count('x') batsu m.count('x') m.count m count 'x' if batsu > 7:
  print('NO')
else:
  print('YES') batsu > 7 batsu 7 print('NO') print 'NO' print('YES') print 'YES' maru = m.count('o') m.count('o') maru m = list(map(str,input())) list(map(str,input())) m batsu = m.count('x') m.count('x') batsu
m = list(map(str,input()))
maru = m.count('o')
batsu = m.count('x')

if batsu > 7:
  print('NO')
else:
  print('YES')