class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: H = None
        self.u: D = None
        self.s: H = None
        self.v: C = None
        self.p: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: F = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: H = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: B = None
        self.q: C = None
        self.z: D = None
        self.y: B = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: B = None
        self.s: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: F = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: H = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.x: B = None
        self.q: C = None
        self.z: D = None
        self.y: B = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: B = None
        self.s: B = None
        self.txt = txt

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

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