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

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

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: F = None
        self.o: I = None
        self.u: C = None
        self.x: G = None
        self.p: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: D = None
        self.q: E = None
        self.t: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: F = None
        self.o: I = None
        self.u: C = None
        self.x: G = None
        self.p: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: D = None
        self.q: E = None
        self.t: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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