class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: A = None
        self.p: A = None
        self.s: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: D = None
        self.r: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: A = None
        self.p: A = None
        self.s: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: D = None
        self.r: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

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

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

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

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