class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: C = None
        self.v: B = None
        self.p: J = None
        self.r: J = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: E = None
        self.v: H = None
        self.y: G = None
        self.s: G = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: A = None
        self.u: J = None
        self.y: H = None
        self.s: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: D = None
        self.r: A = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: J = None
        self.q: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

e = A("e")
c = B("c")
h = C("h")
m = D("m")
n = E("n")
a = F("a")
b = G("b")
d = H("d")
i = I("i")
f = J("f")

e.w = b
e.z = h
e.v = c
e.t = c
e.p = f
e.r = f
c.z = d
h.r = f
h.s = n
h.w = a
h.v = a
h.o = i
h.q = i
h.u = m
m.o = b
m.y = b
m.s = b
m.u = n
m.v = d
m.r = d
n.t = m
n.v = e
n.s = e
n.u = f
n.y = d
a.r = i
a.q = i
a.s = h
a.t = n
b.w = n
b.z = c
b.r = c
b.u = a
b.t = e
d.t = i
d.o = m
d.r = e
d.x = h
i.p = m
i.u = f
i.q = b
f.y = c
assert m.v.x.s.v.v.z.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: C = None
        self.v: B = None
        self.p: J = None
        self.r: J = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: E = None
        self.v: H = None
        self.y: G = None
        self.s: G = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: A = None
        self.u: J = None
        self.y: H = None
        self.s: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: D = None
        self.r: A = None
        self.x: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: J = None
        self.q: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

e = A("e")
c = B("c")
h = C("h")
m = D("m")
n = E("n")
a = F("a")
b = G("b")
d = H("d")
i = I("i")
f = J("f")

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