class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: E = None
        self.w: I = None
        self.z: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: H = None
        self.t: C = None
        self.y: H = None
        self.q: E = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: C = None
        self.q: D = None
        self.x: E = None
        self.p: H = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: B = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

d = A("d")
l = B("l")
e = C("e")
k = D("k")
m = E("m")
b = F("b")
i = G("i")
h = H("h")
f = I("f")
c = E("c")

d.v = k
d.x = m
d.w = f
d.z = h
l.u = k
l.y = k
l.z = d
l.r = m
e.z = h
e.u = d
k.r = f
k.x = h
k.y = h
k.t = e
k.u = e
k.q = c
m.z = d
m.o = e
m.q = k
m.x = c
m.p = h
m.r = l
b.y = l
b.s = l
b.p = h
i.x = c
i.w = l
h.o = l
f.u = b
c.z = d
c.o = e
c.q = k
c.x = m
c.p = h
c.r = l
assert k.x.o.u.q.r.y.q.q.t.txt == "
class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: E = None
        self.w: I = None
        self.z: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: H = None
        self.t: C = None
        self.y: H = None
        self.q: E = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: C = None
        self.q: D = None
        self.x: E = None
        self.p: H = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: B = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

d = A("d")
l = B("l")
e = C("e")
k = D("k")
m = E("m")
b = F("b")
i = G("i")
h = H("h")
f = I("f")
c = E("c")

d.v = k
d.x = m
d.w = f
d.z = h
l.u = k
l.y = k
l.z = d
l.r = m
e.z = h
e.u = d
k.r = f
k.x = h
k.y = h
k.t = e
k.u = e
k.q = c
m.z = d
m.o = e
m.q = k
m.x = c
m.p = h
m.r = l
b.y = l
b.s = l
b.p = h
i.x = c
i.w = l
h.o = l
f.u = b
c.z = d
c.o = e
c.q = k
c.x = m
c.p = h
c.r = l
assert k.x.o.u.q.r.y.q.q.t.txt == "e"