class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: D = None
        self.o: I = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: D = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: F = None
        self.z: G = None
        self.s: A = None
        self.v: E = None
        self.o: G = None
        self.x: A = None
        self.r: F = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: I = None
        self.o: I = None
        self.w: H = None
        self.v: D = None
        self.z: D = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: D = None
        self.r: C = None
        self.v: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: C = None
        self.t: F = None
        self.v: H = None
        self.x: D = None
        self.s: G = None
        self.o: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: D = None
        self.o: I = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: D = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: F = None
        self.z: G = None
        self.s: A = None
        self.v: E = None
        self.o: G = None
        self.x: A = None
        self.r: F = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: I = None
        self.o: I = None
        self.w: H = None
        self.v: D = None
        self.z: D = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: D = None
        self.r: C = None
        self.v: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: C = None
        self.t: F = None
        self.v: H = None
        self.x: D = None
        self.s: G = None
        self.o: A = None
        self.txt = txt

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

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