class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: F = None
        self.o: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.p: E = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: G = None
        self.z: H = None
        self.w: F = None
        self.r: H = None
        self.u: J = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: A = None
        self.u: H = None
        self.y: E = None
        self.z: B = None
        self.t: H = None
        self.r: B = None
        self.w: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.p: E = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: G = None
        self.z: H = None
        self.w: F = None
        self.r: H = None
        self.u: J = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.q: A = None
        self.u: H = None
        self.y: E = None
        self.z: B = None
        self.t: H = None
        self.r: B = None
        self.w: G = None
        self.txt = txt

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

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