class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: H = None
        self.o: B = None
        self.u: H = None
        self.z: E = None
        self.q: F = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: F = None
        self.y: A = None
        self.v: F = None
        self.x: J = None
        self.u: D = None
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: E = None
        self.u: J = None
        self.w: B = None
        self.p: J = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: C = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: I = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: I = None
        self.u: I = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: F = None
        self.t: G = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: E = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: F = None
        self.q: B = None
        self.p: B = None
        self.u: F = None
        self.o: F = None
        self.z: E = None
        self.r: D = None
        self.w: B = None
        self.txt = txt

e = A("e")
g = B("g")
i = C("i")
f = D("f")
j = E("j")
c = F("c")
n = G("n")
l = H("l")
h = I("h")
m = J("m")

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

class B:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: F = None
        self.y: A = None
        self.v: F = None
        self.x: J = None
        self.u: D = None
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: E = None
        self.u: J = None
        self.w: B = None
        self.p: J = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: C = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: I = None
        self.t: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: I = None
        self.u: I = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: F = None
        self.t: G = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: E = None
        self.s: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: F = None
        self.q: B = None
        self.p: B = None
        self.u: F = None
        self.o: F = None
        self.z: E = None
        self.r: D = None
        self.w: B = None
        self.txt = txt

e = A("e")
g = B("g")
i = C("i")
f = D("f")
j = E("j")
c = F("c")
n = G("n")
l = H("l")
h = I("h")
m = J("m")

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