#/bin/python

import sys
import re
from time import strftime
from datetime import datetime

arr = {}
last = "0"

with open(sys.argv[1], "r") as f:
  for line in f:
    m = re.search('.*\(([0-9]+)\)(.*)', line)
    if m and m.group(1):
      last = m.group(1)
      arr[m.group(1)] = [m.group(2)]
      print("\n"+m.group(1)+" / "+ datetime.fromtimestamp(int(m.group(1))).strftime('%H:%M:%S')+"\n")
      print(m.group(2))
    else:
      if last in arr:
        print(line.replace("\n",""))
        #//arr[last].append(line)
      
#print(str(arr).replace('"',"\\\"").replace("'",'"'))

