class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: C = None
        self.w: H = None
        self.q: H = None
        self.s: I = None
        self.x: F = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: G = None
        self.s: I = None
        self.x: G = None
        self.w: C = None
        self.p: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: E = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: F = None
        self.p: A = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: A = None
        self.z: F = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: F = None
        self.txt = txt

n = A("n")
e = B("e")
j = C("j")
m = D("m")
f = E("f")
g = F("g")
l = G("l")
b = H("b")
a = I("a")

n.t = b
n.w = b
n.q = b
n.p = j
n.u = j
n.s = a
n.x = g
e.z = a
e.s = a
e.q = l
e.x = l
e.w = j
e.p = m
j.z = l
m.w = f
m.p = e
m.u = a
m.q = j
m.v = j
f.x = g
f.o = g
f.r = b
f.z = b
f.s = a
f.w = a
f.y = m
f.u = e
f.q = j
g.t = f
g.w = f
g.o = a
l.o = e
l.y = g
l.p = n
l.z = n
b.w = g
b.z = g
b.p = n
b.u = f
a.y = e
a.x = g
assert a.y.q.y.o.y.q.y.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: C = None
        self.w: H = None
        self.q: H = None
        self.s: I = None
        self.x: F = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: G = None
        self.s: I = None
        self.x: G = None
        self.w: C = None
        self.p: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: E = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: F = None
        self.p: A = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: A = None
        self.z: F = None
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: F = None
        self.txt = txt

n = A("n")
e = B("e")
j = C("j")
m = D("m")
f = E("f")
g = F("g")
l = G("l")
b = H("b")
a = I("a")

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