class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: G = None
        self.p: B = None
        self.w: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

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