class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: H = None
        self.p: C = None
        self.o: D = None
        self.t: G = None
        self.y: H = None
        self.z: H = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: G = None
        self.o: H = None
        self.v: H = None
        self.r: F = None
        self.y: G = None
        self.t: E = None
        self.x: I = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: I = None
        self.z: H = None
        self.x: F = None
        self.q: F = None
        self.y: G = None
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: G = None
        self.o: H = None
        self.v: H = None
        self.r: F = None
        self.y: G = None
        self.t: E = None
        self.x: I = None
        self.u: B = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: I = None
        self.z: H = None
        self.x: F = None
        self.q: F = None
        self.y: G = None
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

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