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

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

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: A = None
        self.o: F = None
        self.t: F = None
        self.q: H = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: A = None
        self.o: F = None
        self.t: F = None
        self.q: H = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: D = None
        self.txt = txt

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

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