class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: H = None
        self.p: F = None
        self.x: D = None
        self.s: H = None
        self.u: G = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: G = None
        self.s: B = None
        self.z: G = None
        self.y: H = None
        self.t: F = None
        self.x: H = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: D = None
        self.y: G = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: A = None
        self.o: H = None
        self.s: H = None
        self.q: D = None
        self.txt = txt

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

b = A("b")
j = B("j")
a = C("a")
m = D("m")
d = E("d")
f = F("f")
i = G("i")
g = H("g")
n = A("n")

b.t = d
b.y = d
b.z = g
b.s = g
b.p = f
b.x = m
b.u = i
j.o = d
a.o = d
a.z = j
m.o = j
m.r = a
m.u = g
d.q = g
d.y = g
d.x = g
d.r = i
d.z = i
d.s = j
d.t = f
d.u = n
f.z = j
f.s = j
f.o = m
f.y = i
i.u = d
i.w = n
i.o = g
i.s = g
i.q = m
g.y = f
g.u = f
g.s = f
g.w = d
g.q = a
g.r = m
n.t = d
n.y = d
n.z = g
n.s = g
n.p = f
n.x = m
n.u = i
assert i.o.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: H = None
        self.p: F = None
        self.x: D = None
        self.s: H = None
        self.u: G = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: G = None
        self.s: B = None
        self.z: G = None
        self.y: H = None
        self.t: F = None
        self.x: H = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: D = None
        self.y: G = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: A = None
        self.o: H = None
        self.s: H = None
        self.q: D = None
        self.txt = txt

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

b = A("b")
j = B("j")
a = C("a")
m = D("m")
d = E("d")
f = F("f")
i = G("i")
g = H("g")
n = A("n")

b.t = d
b.y = d
b.z = g
b.s = g
b.p = f
b.x = m
b.u = i
j.o = d
a.o = d
a.z = j
m.o = j
m.r = a
m.u = g
d.q = g
d.y = g
d.x = g
d.r = i
d.z = i
d.s = j
d.t = f
d.u = n
f.z = j
f.s = j
f.o = m
f.y = i
i.u = d
i.w = n
i.o = g
i.s = g
i.q = m
g.y = f
g.u = f
g.s = f
g.w = d
g.q = a
g.r = m
n.t = d
n.y = d
n.z = g
n.s = g
n.p = f
n.x = m
n.u = i
assert i.o.w.t.txt == "f"