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

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: F = None
        self.z: G = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: F = None
        self.z: G = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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