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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: D = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: F = None
        self.q: C = None
        self.u: A = None
        self.txt = txt

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

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

k = A("k")
j = B("j")
e = C("e")
g = D("g")
m = E("m")
h = F("h")
b = E("b")
i = F("i")
l = A("l")
a = D("a")

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: D = None
        self.s: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: F = None
        self.q: C = None
        self.u: A = None
        self.txt = txt

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

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

k = A("k")
j = B("j")
e = C("e")
g = D("g")
m = E("m")
h = F("h")
b = E("b")
i = F("i")
l = A("l")
a = D("a")

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