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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: H = None
        self.x: I = None
        self.o: A = None
        self.v: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: F = None
        self.x: H = None
        self.u: B = None
        self.y: I = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: G = None
        self.s: F = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: E = None
        self.q: I = None
        self.o: A = None
        self.x: I = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: D = None
        self.r: B = None
        self.z: A = None
        self.w: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: C = None
        self.s: B = None
        self.u: A = None
        self.txt = txt

k = A("k")
i = B("i")
j = C("j")
n = D("n")
l = E("l")
e = F("e")
h = G("h")
g = H("g")
c = I("c")

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: H = None
        self.x: I = None
        self.o: A = None
        self.v: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: F = None
        self.x: H = None
        self.u: B = None
        self.y: I = None
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: G = None
        self.s: F = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: E = None
        self.q: I = None
        self.o: A = None
        self.x: I = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: D = None
        self.r: B = None
        self.z: A = None
        self.w: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: C = None
        self.s: B = None
        self.u: A = None
        self.txt = txt

k = A("k")
i = B("i")
j = C("j")
n = D("n")
l = E("l")
e = F("e")
h = G("h")
g = H("g")
c = I("c")

k.t = l
k.u = l
k.v = c
k.y = c
k.z = c
k.w = h
k.s = i
k.p = e
i.t = j
i.q = g
i.x = c
i.o = k
i.v = h
j.y = n
j.r = i
j.s = i
j.u = i
j.p = e
j.v = l
j.o = c
j.t = k
n.q = k
n.v = k
n.w = e
n.x = g
n.u = i
n.y = c
l.r = e
l.s = e
l.p = h
l.y = h
e.v = h
e.p = l
e.q = c
e.x = c
e.y = c
e.o = k
h.x = g
h.p = n
h.r = i
h.z = k
h.w = k
g.r = i
g.z = i
g.y = e
g.q = j
g.u = n
g.s = n
c.q = k
c.u = k
c.o = j
c.s = i
assert g.y.p.y.x.z.t.y.w.x.txt == "c"