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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: E = None
        self.p: G = None
        self.t: C = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: G = None
        self.x: D = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: E = None
        self.p: G = None
        self.t: C = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: G = None
        self.x: D = None
        self.r: D = None
        self.txt = txt

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

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

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

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