#!/usr/bin/python3
import sys
import os
lines = sys.stdin.readlines()
updated = {}
for line in lines:
old, new, name = line.split()
updated.add(name)
if "refs/heads/test" in updated:
os.system("echo merchant | timeout 1s tee rebuild")
print("updating merchant")