class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: G = None
        self.q: G = None
        self.t: C = None
        self.o: H = None
        self.y: E = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: G = None
        self.v: D = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: B = None
        self.v: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: H = None
        self.p: C = None
        self.s: G = None
        self.v: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: G = None
        self.v: D = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.w: B = None
        self.v: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: H = None
        self.p: C = None
        self.s: G = None
        self.v: G = None
        self.txt = txt

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

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

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

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