class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: H = None
        self.t: C = None
        self.v: B = None
        self.r: C = None
        self.p: B = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: D = None
        self.z: C = None
        self.t: E = None
        self.s: A = None
        self.r: F = None
        self.x: A = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: G = None
        self.u: D = None
        self.z: C = None
        self.t: E = None
        self.s: A = None
        self.r: F = None
        self.x: A = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: A = None
        self.txt = txt

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

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