# -*- coding: utf-8 -*-
# Опасная версия, реализованная руками

import threading, time, sys

killed = False

who = 2

def x(n):
  global who
  print(n, "started")
  while not killed:
    while who != n: pass
    print(n)
    who = 3 - who

threading.Thread(target=x, args=[1]).start()
threading.Thread(target=x, args=[2]).start()

sys.stdin.readline()
killed = True