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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: G = None
        self.z: C = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

c = A("c")
j = B("j")
b = C("b")
m = D("m")
l = E("l")
i = F("i")
a = G("a")
k = C("k")
e = D("e")
n = E("n")

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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: G = None
        self.z: C = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

c = A("c")
j = B("j")
b = C("b")
m = D("m")
l = E("l")
i = F("i")
a = G("a")
k = C("k")
e = D("e")
n = E("n")

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