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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: E = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: E = None
        self.s: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: E = None
        self.x: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: E = None
        self.s: A = None
        self.txt = txt

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

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

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