class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: G = None
        self.y: D = None
        self.u: C = None
        self.o: C = None
        self.r: H = None
        self.t: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: G = None
        self.t: G = None
        self.s: I = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: F = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: A = None
        self.s: H = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: H = None
        self.q: B = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: G = None
        self.t: G = None
        self.s: I = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: F = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: A = None
        self.s: H = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: H = None
        self.q: B = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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