class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: G = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: F = None
        self.r: A = None
        self.t: G = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: G = None
        self.u: D = None
        self.y: A = None
        self.z: B = None
        self.r: D = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: H = None
        self.x: C = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: D = None
        self.o: G = None
        self.v: A = None
        self.y: F = None
        self.r: F = None
        self.p: G = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: D = None
        self.q: A = None
        self.t: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: C = None
        self.t: B = None
        self.p: A = None
        self.txt = txt

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

e.t = g
e.o = d
e.v = m
l.u = b
l.v = k
l.r = e
l.t = d
l.o = i
g.w = l
g.z = l
g.x = l
g.q = d
g.u = i
g.y = e
g.r = n
i.y = k
i.z = m
i.x = g
i.o = b
f.x = d
f.o = d
f.p = d
f.w = i
f.v = e
f.y = k
f.r = k
f.z = g
k.v = n
k.r = i
k.t = i
k.q = e
d.q = g
m.x = e
m.p = e
m.y = g
m.t = l
b.x = d
b.o = d
b.p = d
b.w = n
b.v = e
b.y = k
b.r = k
b.z = g
n.y = k
n.z = m
n.x = g
n.o = f
assert i.o.r.q.v.t.o.txt == "
class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: G = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: F = None
        self.r: A = None
        self.t: G = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: G = None
        self.u: D = None
        self.y: A = None
        self.z: B = None
        self.r: D = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: H = None
        self.x: C = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: D = None
        self.o: G = None
        self.v: A = None
        self.y: F = None
        self.r: F = None
        self.p: G = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: D = None
        self.q: A = None
        self.t: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: C = None
        self.t: B = None
        self.p: A = None
        self.txt = txt

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

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