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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: F = None
        self.x: I = None
        self.p: D = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: F = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: I = None
        self.u: F = None
        self.r: I = None
        self.z: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: A = None
        self.y: C = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: C = None
        self.y: I = None
        self.r: A = None
        self.p: D = None
        self.q: A = None
        self.u: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: F = None
        self.x: I = None
        self.p: D = None
        self.o: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: F = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: I = None
        self.u: F = None
        self.r: I = None
        self.z: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: A = None
        self.y: C = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: C = None
        self.y: I = None
        self.r: A = None
        self.p: D = None
        self.q: A = None
        self.u: F = None
        self.txt = txt

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

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

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