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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: C = None
        self.o: C = None
        self.w: G = None
        self.y: G = None
        self.p: G = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: E = None
        self.s: C = None
        self.w: G = None
        self.v: G = None
        self.x: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: C = None
        self.o: C = None
        self.w: G = None
        self.y: G = None
        self.p: G = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: E = None
        self.s: C = None
        self.w: G = None
        self.v: G = None
        self.x: C = None
        self.txt = txt

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

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

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

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