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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: H = None
        self.p: E = None
        self.o: H = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: H = None
        self.q: E = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: J = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: A = None
        self.v: C = None
        self.o: C = None
        self.x: C = None
        self.u: H = None
        self.txt = txt

m = A("m")
h = B("h")
a = C("a")
j = D("j")
e = E("e")
l = F("l")
g = G("g")
k = H("k")
b = I("b")
f = J("f")

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: H = None
        self.p: E = None
        self.o: H = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: H = None
        self.q: E = None
        self.t: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: J = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.r: A = None
        self.v: C = None
        self.o: C = None
        self.x: C = None
        self.u: H = None
        self.txt = txt

m = A("m")
h = B("h")
a = C("a")
j = D("j")
e = E("e")
l = F("l")
g = G("g")
k = H("k")
b = I("b")
f = J("f")

m.w = h
m.u = l
h.t = b
h.p = e
a.s = k
a.z = k
a.o = k
a.u = k
a.p = e
j.s = k
e.s = k
e.r = k
e.o = b
l.v = e
l.q = e
l.r = k
l.t = a
g.w = f
g.t = f
g.p = e
k.r = g
k.t = b
b.p = m
b.r = m
f.w = h
f.r = m
f.v = a
f.o = a
f.x = a
f.u = k
assert e.o.p.w.p.txt == "e"