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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: B = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: H = None
        self.u: A = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: F = None
        self.y: B = None
        self.x: F = None
        self.r: C = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: A = None
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: D = None
        self.p: G = None
        self.x: C = None
        self.t: G = None
        self.r: B = None
        self.z: H = None
        self.w: A = None
        self.txt = txt

f = A("f")
k = B("k")
j = C("j")
h = D("h")
d = E("d")
l = F("l")
i = G("i")
n = H("n")
m = H("m")
e = B("e")

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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: B = None
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: H = None
        self.u: A = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: F = None
        self.y: B = None
        self.x: F = None
        self.r: C = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: A = None
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: D = None
        self.p: G = None
        self.x: C = None
        self.t: G = None
        self.r: B = None
        self.z: H = None
        self.w: A = None
        self.txt = txt

f = A("f")
k = B("k")
j = C("j")
h = D("h")
d = E("d")
l = F("l")
i = G("i")
n = H("n")
m = H("m")
e = B("e")

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