class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: H = None
        self.x: C = None
        self.y: I = None
        self.o: H = None
        self.w: J = None
        self.p: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: B = None
        self.x: A = None
        self.y: H = None
        self.u: B = None
        self.w: A = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: D = None
        self.q: G = None
        self.t: J = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: B = None
        self.x: A = None
        self.y: H = None
        self.u: B = None
        self.w: A = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: D = None
        self.q: G = None
        self.t: J = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.r: A = None
        self.txt = txt

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

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