class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: B = None
        self.v: D = None
        self.o: C = None
        self.r: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: E = None
        self.p: E = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: E = None
        self.p: E = None
        self.txt = txt

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

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

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

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