class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: E = None
        self.u: C = None
        self.v: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: A = None
        self.r: G = None
        self.q: I = None
        self.o: G = None
        self.x: A = None
        self.t: E = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: B = None
        self.u: B = None
        self.q: H = None
        self.o: E = None
        self.v: E = None
        self.x: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: A = None
        self.r: G = None
        self.q: I = None
        self.o: G = None
        self.x: A = None
        self.t: E = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: B = None
        self.u: B = None
        self.q: H = None
        self.o: E = None
        self.v: E = None
        self.x: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: D = None
        self.txt = txt

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

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

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

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