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

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: E = None
        self.w: A = None
        self.x: F = None
        self.o: A = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: E = None
        self.t: D = None
        self.r: B = None
        self.s: A = None
        self.txt = txt

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

b = A("b")
e = B("e")
n = C("n")
c = D("c")
h = E("h")
m = F("m")
a = E("a")
d = B("d")
j = C("j")
i = B("i")

b.z = h
b.p = h
b.q = c
b.u = c
b.o = d
e.s = j
e.z = n
e.w = c
n.u = j
n.t = j
n.o = j
n.z = m
c.p = i
c.r = i
c.s = h
c.w = b
c.o = b
c.x = m
h.p = a
h.o = a
h.t = c
h.r = d
h.s = b
m.r = a
m.o = e
m.q = e
m.t = c
a.p = h
a.o = h
a.t = c
a.r = e
a.s = b
d.s = n
d.z = j
d.w = c
j.u = n
j.t = n
j.o = n
j.z = m
i.s = j
i.z = j
i.w = c
assert i.w.s.t.s.txt == "
class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: D = None
        self.o: B = None
        self.u: D = None
        self.p: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: E = None
        self.w: A = None
        self.x: F = None
        self.o: A = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: E = None
        self.t: D = None
        self.r: B = None
        self.s: A = None
        self.txt = txt

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

b = A("b")
e = B("e")
n = C("n")
c = D("c")
h = E("h")
m = F("m")
a = E("a")
d = B("d")
j = C("j")
i = B("i")

b.z = h
b.p = h
b.q = c
b.u = c
b.o = d
e.s = j
e.z = n
e.w = c
n.u = j
n.t = j
n.o = j
n.z = m
c.p = i
c.r = i
c.s = h
c.w = b
c.o = b
c.x = m
h.p = a
h.o = a
h.t = c
h.r = d
h.s = b
m.r = a
m.o = e
m.q = e
m.t = c
a.p = h
a.o = h
a.t = c
a.r = e
a.s = b
d.s = n
d.z = j
d.w = c
j.u = n
j.t = n
j.o = n
j.z = m
i.s = j
i.z = j
i.w = c
assert i.w.s.t.s.txt == "h"