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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: C = None
        self.v: E = None
        self.q: A = None
        self.r: F = None
        self.o: B = None
        self.t: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: A = None
        self.z: A = None
        self.s: D = None
        self.o: D = None
        self.x: A = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: C = None
        self.v: E = None
        self.q: A = None
        self.r: F = None
        self.o: B = None
        self.t: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: A = None
        self.z: A = None
        self.s: D = None
        self.o: D = None
        self.x: A = None
        self.t: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.txt = txt

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

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