while 1: try:input() except Exception,e:print e.offset