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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: A = None
        self.o: D = None
        self.t: D = None
        self.v: B = None
        self.q: B = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.z: G = None
        self.p: C = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: D = None
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: D = None
        self.x: D = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

c = A("c")
a = B("a")
k = C("k")
b = D("b")
d = E("d")
h = F("h")
m = G("m")
l = H("l")
e = A("e")
i = C("i")

c.w = i
c.s = i
c.u = b
c.x = b
c.t = b
c.r = l
c.y = a
c.v = m
a.s = c
a.r = m
k.r = d
k.x = e
k.o = b
k.t = b
k.u = b
k.v = a
k.q = a
b.y = h
b.t = m
b.z = m
b.p = k
b.q = c
d.w = b
d.z = b
d.x = l
h.y = a
m.w = h
m.u = b
m.x = b
m.v = i
l.p = a
e.w = k
e.u = b
e.x = b
e.t = b
e.r = l
e.s = i
e.y = a
e.v = m
i.r = d
i.x = e
i.o = b
i.t = b
i.u = b
i.v = a
i.q = a
assert l.p.s.v.w.txt == "
class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: D = None
        self.r: H = None
        self.s: C = None
        self.y: B = None
        self.x: D = None
        self.t: D = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: A = None
        self.o: D = None
        self.t: D = None
        self.v: B = None
        self.q: B = None
        self.u: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.z: G = None
        self.p: C = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: D = None
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: D = None
        self.x: D = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

c = A("c")
a = B("a")
k = C("k")
b = D("b")
d = E("d")
h = F("h")
m = G("m")
l = H("l")
e = A("e")
i = C("i")

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