class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: D = None
        self.y: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: D = None
        self.o: E = None
        self.y: A = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: J = None
        self.x: G = None
        self.u: I = None
        self.y: C = None
        self.v: C = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: J = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: H = None
        self.q: J = None
        self.t: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: H = None
        self.w: C = None
        self.s: F = None
        self.x: H = None
        self.v: A = None
        self.r: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: D = None
        self.o: E = None
        self.y: A = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: J = None
        self.x: G = None
        self.u: I = None
        self.y: C = None
        self.v: C = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: J = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.z: H = None
        self.q: J = None
        self.t: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: H = None
        self.w: C = None
        self.s: F = None
        self.x: H = None
        self.v: A = None
        self.r: H = None
        self.txt = txt

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

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

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