class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: E = None
        self.y: G = None
        self.q: C = None
        self.x: E = None
        self.u: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: H = None
        self.t: I = None
        self.z: B = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: G = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: B = None
        self.s: I = None
        self.y: D = None
        self.q: D = None
        self.x: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: H = None
        self.t: I = None
        self.z: B = None
        self.w: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: G = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: B = None
        self.s: I = None
        self.y: D = None
        self.q: D = None
        self.x: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

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