class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: C = None
        self.y: B = None
        self.w: D = None
        self.v: E = None
        self.q: C = None
        self.txt = txt

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

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

c.t = a
a.x = j
a.y = c
a.t = c
a.u = l
a.z = l
a.o = l
l.x = j
l.v = f
d.z = i
d.q = i
d.o = c
d.y = c
d.t = f
d.x = j
d.u = n
n.x = j
j.u = d
j.r = l
j.z = i
i.t = d
i.w = d
i.p = l
i.q = l
i.y = a
i.v = n
f.q = l
f.y = l
f.z = j
f.s = j
f.v = c
f.x = c
f.p = n
assert i.t.u.x.r.x.z.y.txt == "
class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: C = None
        self.y: B = None
        self.w: D = None
        self.v: E = None
        self.q: C = None
        self.txt = txt

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

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

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