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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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