#! /usr/bin/python from struct import unpack from sys import stdin p = 0 while True: h = stdin.read(13) if h == '': break ntr, da, db, cid = unpack('