class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: A = None
        self.y: G = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: C = None
        self.v: D = None
        self.w: C = None
        self.y: I = None
        self.u: C = None
        self.s: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: B = None
        self.q: F = None
        self.u: D = None
        self.s: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: A = None
        self.y: G = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.x: C = None
        self.v: D = None
        self.w: C = None
        self.y: I = None
        self.u: C = None
        self.s: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: B = None
        self.q: F = None
        self.u: D = None
        self.s: D = None
        self.y: H = None
        self.txt = txt

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

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