def rol(value, count):
 for y in range(count):
  value *= 2
  if (value > 18446744073709551615L):
   value -= 18446744073709551616L
   value += 1
 return value

def rol ( value , count ) : for y in range ( count ) : value *= 2 if ( value > 18446744073709551615 L ) : value -= 18446744073709551616 L value += 1 return value
returns a rotation by k of n .