text: """
   *
   * Author:  Juarez Paulino(coderemite)
   * Email: juarez.paulino@gmail.com
   *
   """
  for s in[*open(0)][1:]:
    a,b,c=map(int,s.split())
    while a>20 and b:a=a//2+10;b-=1
    print('YNEOS'[0--a//10>c::2])