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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: J = None
        self.w: A = None
        self.p: G = None
        self.y: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.p: H = None
        self.o: H = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: D = None
        self.s: F = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: J = None
        self.w: A = None
        self.p: G = None
        self.y: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.p: H = None
        self.o: H = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: D = None
        self.s: F = None
        self.u: E = None
        self.txt = txt

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

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

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

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