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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: F = None
        self.s: C = None
        self.z: F = None
        self.q: E = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: A = None
        self.w: A = None
        self.v: A = None
        self.u: D = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: F = None
        self.s: C = None
        self.z: F = None
        self.q: E = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: A = None
        self.w: A = None
        self.v: A = None
        self.u: D = None
        self.q: D = None
        self.txt = txt

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

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

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