class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: I = None
        self.q: I = None
        self.x: I = None
        self.t: G = None
        self.y: F = None
        self.w: H = None
        self.z: C = None
        self.s: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: I = None
        self.v: I = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: B = None
        self.z: A = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: H = None
        self.q: G = None
        self.r: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: A = None
        self.y: D = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: I = None
        self.v: I = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: B = None
        self.z: A = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: H = None
        self.q: G = None
        self.r: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: A = None
        self.y: D = None
        self.r: B = None
        self.txt = txt

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

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