class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: G = None
        self.p: B = None
        self.x: F = None
        self.s: H = None
        self.t: F = None
        self.z: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: B = None
        self.x: C = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: D = None
        self.o: C = None
        self.x: D = None
        self.s: D = None
        self.z: B = None
        self.p: G = None
        self.v: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: B = None
        self.x: C = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: D = None
        self.o: C = None
        self.x: D = None
        self.s: D = None
        self.z: B = None
        self.p: G = None
        self.v: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: E = None
        self.txt = txt

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

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