class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: E = None
        self.s: I = None
        self.u: F = None
        self.x: C = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.x: H = None
        self.y: E = None
        self.z: H = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.x: H = None
        self.y: E = None
        self.z: H = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: B = None
        self.txt = txt

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

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

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

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