class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: E = None
        self.z: D = None
        self.r: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: D = None
        self.v: C = None
        self.y: F = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: D = None
        self.v: C = None
        self.y: F = None
        self.r: C = None
        self.txt = txt

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

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