class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: E = None
        self.u: D = None
        self.s: H = None
        self.z: H = None
        self.p: D = None
        self.y: H = None
        self.t: E = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: A = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: A = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: B = None
        self.w: B = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: E = None
        self.v: A = None
        self.z: C = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: B = None
        self.txt = txt

i = A("i")
e = B("e")
h = C("h")
l = D("l")
g = E("g")
d = F("d")
j = G("j")
b = H("b")
a = I("a")
m = G("m")

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: A = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: A = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: B = None
        self.w: B = None
        self.u: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: E = None
        self.v: A = None
        self.z: C = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: B = None
        self.txt = txt

i = A("i")
e = B("e")
h = C("h")
l = D("l")
g = E("g")
d = F("d")
j = G("j")
b = H("b")
a = I("a")
m = G("m")

i.v = g
i.o = g
i.t = g
i.u = l
i.p = l
i.s = b
i.z = b
i.y = b
i.q = h
e.u = l
e.v = i
e.t = h
h.v = a
h.t = i
h.q = e
l.r = b
l.q = b
g.o = a
g.s = e
g.w = e
g.u = b
d.u = l
d.p = g
d.q = g
d.v = i
d.z = h
j.t = m
b.y = a
a.s = d
a.v = e
m.t = j
assert i.o.u.y.v.txt == "e"