class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: F = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: D = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: B = None
        self.u: D = None
        self.z: H = None
        self.r: B = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: G = None
        self.w: F = None
        self.p: E = None
        self.v: D = None
        self.t: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: D = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: B = None
        self.u: D = None
        self.z: H = None
        self.r: B = None
        self.p: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: G = None
        self.w: F = None
        self.p: E = None
        self.v: D = None
        self.t: H = None
        self.txt = txt

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

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