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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: I = None
        self.o: H = None
        self.w: E = None
        self.y: E = None
        self.x: G = None
        self.u: A = None
        self.q: G = 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: I = None
        self.z: F = None
        self.x: G = None
        self.v: D = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: E = None
        self.q: B = None
        self.t: I = None
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: G = None
        self.r: A = None
        self.z: B = None
        self.w: E = None
        self.o: E = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: I = None
        self.o: H = None
        self.w: E = None
        self.y: E = None
        self.x: G = None
        self.u: A = None
        self.q: G = 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: I = None
        self.z: F = None
        self.x: G = None
        self.v: D = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: E = None
        self.q: B = None
        self.t: I = None
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.s: G = None
        self.r: A = None
        self.z: B = None
        self.w: E = None
        self.o: E = None
        self.y: G = None
        self.txt = txt

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

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

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