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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: F = None
        self.o: C = None
        self.z: F = None
        self.q: F = None
        self.w: C = None
        self.t: A = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: F = None
        self.y: H = None
        self.v: B = None
        self.s: I = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: C = None
        self.p: A = None
        self.t: A = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: E = None
        self.u: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: F = None
        self.r: E = None
        self.w: B = None
        self.v: C = None
        self.o: A = None
        self.u: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: C = None
        self.x: A = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: D = None
        self.y: C = None
        self.o: A = None
        self.s: H = None
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: F = None
        self.o: C = None
        self.z: F = None
        self.q: F = None
        self.w: C = None
        self.t: A = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: F = None
        self.y: H = None
        self.v: B = None
        self.s: I = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: C = None
        self.p: A = None
        self.t: A = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: E = None
        self.u: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: F = None
        self.r: E = None
        self.w: B = None
        self.v: C = None
        self.o: A = None
        self.u: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: C = None
        self.x: A = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: D = None
        self.y: C = None
        self.o: A = None
        self.s: H = None
        self.x: H = None
        self.txt = txt

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

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