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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: H = None
        self.u: D = None
        self.x: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: D = None
        self.y: F = None
        self.w: I = None
        self.z: E = None
        self.r: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: D = None
        self.y: G = None
        self.o: G = None
        self.p: A = None
        self.txt = txt

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

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

b.p = g
b.y = g
b.z = g
b.o = g
b.t = l
b.x = h
b.u = m
b.r = c
b.w = k
m.v = h
e.t = c
e.s = c
e.u = l
e.x = g
l.t = h
l.y = g
l.w = e
l.v = c
l.z = c
l.x = c
l.q = k
l.o = m
l.p = m
i.o = h
k.v = m
k.s = m
k.r = l
k.y = l
k.q = l
k.z = f
k.o = f
k.x = e
k.w = i
k.u = i
f.p = l
f.s = l
f.r = l
f.y = k
f.w = g
f.z = i
c.t = g
c.q = g
c.x = g
c.y = l
c.r = l
c.w = i
c.v = m
c.u = h
c.s = e
g.s = b
g.p = b
g.v = l
g.y = f
g.o = f
h.u = c
h.z = m
assert h.z.v.u.u.txt == "
class A:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: I = None
        self.t: D = None
        self.x: J = None
        self.u: B = None
        self.r: H = None
        self.z: I = None
        self.o: I = None
        self.w: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: H = None
        self.u: D = None
        self.x: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: D = None
        self.y: F = None
        self.w: I = None
        self.z: E = None
        self.r: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.v: D = None
        self.y: G = None
        self.o: G = None
        self.p: A = None
        self.txt = txt

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

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

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