#!/bin/python import sys q = int(raw_input().strip()) a = "hackerrank" for a0 in xrange(q): s = raw_input().strip() # your code goes here count = 0 i = 0 j = 0 while(i