class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: G = None
        self.z: E = None
        self.o: E = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: B = None
        self.w: G = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: H = None
        self.z: B = None
        self.s: A = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.p: F = None
        self.q: B = None
        self.t: I = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: D = None
        self.p: C = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

j = A("j")
m = B("m")
n = C("n")
e = D("e")
l = E("l")
i = F("i")
a = G("a")
c = H("c")
k = I("k")
g = C("g")

j.s = c
j.z = i
m.y = e
m.r = a
m.z = l
m.o = l
m.u = g
n.t = k
n.o = m
n.r = m
n.w = a
e.w = g
e.r = c
e.z = m
e.s = j
e.x = k
l.z = k
l.t = k
l.p = i
l.q = m
l.y = e
i.q = g
a.x = n
a.p = n
a.s = e
a.q = i
c.z = n
k.o = g
g.t = k
g.o = m
g.r = m
g.w = a
assert k.o.t.o.t.o.t.txt == "
class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: G = None
        self.z: E = None
        self.o: E = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: B = None
        self.w: G = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: H = None
        self.z: B = None
        self.s: A = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.p: F = None
        self.q: B = None
        self.t: I = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: D = None
        self.p: C = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

j = A("j")
m = B("m")
n = C("n")
e = D("e")
l = E("l")
i = F("i")
a = G("a")
c = H("c")
k = I("k")
g = C("g")

j.s = c
j.z = i
m.y = e
m.r = a
m.z = l
m.o = l
m.u = g
n.t = k
n.o = m
n.r = m
n.w = a
e.w = g
e.r = c
e.z = m
e.s = j
e.x = k
l.z = k
l.t = k
l.p = i
l.q = m
l.y = e
i.q = g
a.x = n
a.p = n
a.s = e
a.q = i
c.z = n
k.o = g
g.t = k
g.o = m
g.r = m
g.w = a
assert k.o.t.o.t.o.t.txt == "k"