class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: G = None
        self.q: C = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: A = None
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: D = None
        self.v: D = None
        self.z: G = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: C = None
        self.x: C = None
        self.t: A = None
        self.r: F = None
        self.q: E = None
        self.o: A = None
        self.txt = txt

c = A("c")
l = B("l")
k = C("k")
n = D("n")
h = E("h")
a = F("a")
f = G("f")
j = H("j")
i = D("i")

c.x = f
c.o = f
c.q = k
c.v = n
l.p = a
l.o = a
k.o = l
k.p = c
k.t = h
n.y = i
n.q = c
n.z = c
n.s = f
n.r = a
n.w = a
n.t = a
n.o = k
h.w = l
h.s = l
h.p = k
h.v = k
h.t = c
h.z = c
h.u = i
a.q = n
a.s = i
a.v = i
a.z = f
a.x = c
f.y = n
f.v = l
f.r = l
f.o = l
f.w = l
f.u = h
j.z = a
j.r = a
j.s = k
j.x = k
j.t = c
j.o = c
j.q = h
i.y = n
i.q = c
i.z = c
i.s = f
i.r = a
i.w = a
i.t = a
i.o = k
assert l.o.q.r.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: G = None
        self.q: C = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: A = None
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: D = None
        self.v: D = None
        self.z: G = None
        self.x: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: C = None
        self.x: C = None
        self.t: A = None
        self.r: F = None
        self.q: E = None
        self.o: A = None
        self.txt = txt

c = A("c")
l = B("l")
k = C("k")
n = D("n")
h = E("h")
a = F("a")
f = G("f")
j = H("j")
i = D("i")

c.x = f
c.o = f
c.q = k
c.v = n
l.p = a
l.o = a
k.o = l
k.p = c
k.t = h
n.y = i
n.q = c
n.z = c
n.s = f
n.r = a
n.w = a
n.t = a
n.o = k
h.w = l
h.s = l
h.p = k
h.v = k
h.t = c
h.z = c
h.u = i
a.q = n
a.s = i
a.v = i
a.z = f
a.x = c
f.y = n
f.v = l
f.r = l
f.o = l
f.w = l
f.u = h
j.z = a
j.r = a
j.s = k
j.x = k
j.t = c
j.o = c
j.q = h
i.y = n
i.q = c
i.z = c
i.s = f
i.r = a
i.w = a
i.t = a
i.o = k
assert l.o.q.r.txt == "a"