Skip to main content
2 of 3
added 4 characters in body
Unmitigated
  • 2.9k
  • 1
  • 6
  • 15

Java, 130 127 bytes

s->{int x=0,l;for(String w:s.split(" ")){l=w.length()/11;if(l==6)System.out.println(x);x=new int[]{0,x+1,x-1,x*2,x/2,x}[l-1];}}

Try it online!

Unmitigated
  • 2.9k
  • 1
  • 6
  • 15