class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: B = None
        self.s: B = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: F = None
        self.y: A = None
        self.s: D = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: J = None
        self.z: G = None
        self.p: E = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: E = None
        self.t: D = None
        self.u: I = None
        self.s: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.u: B = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: A = None
        self.u: C = None
        self.w: H = None
        self.r: F = None
        self.v: E = None
        self.y: C = None
        self.p: G = None
        self.q: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: B = None
        self.s: B = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: F = None
        self.y: A = None
        self.s: D = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: J = None
        self.z: G = None
        self.p: E = None
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: E = None
        self.t: D = None
        self.u: I = None
        self.s: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.u: B = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: A = None
        self.u: C = None
        self.w: H = None
        self.r: F = None
        self.v: E = None
        self.y: C = None
        self.p: G = None
        self.q: E = None
        self.txt = txt

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

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