class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: F = None
        self.r: C = None
        self.q: D = None
        self.y: D = None
        self.x: G = None
        self.s: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: A = None
        self.u: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: H = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: E = None
        self.t: A = None
        self.p: H = None
        self.v: B = None
        self.s: A = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: A = None
        self.u: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: H = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: E = None
        self.t: A = None
        self.p: H = None
        self.v: B = None
        self.s: A = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: F = None
        self.txt = txt

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

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