class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: F = None
        self.o: E = None
        self.s: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: C = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: I = None
        self.t: F = None
        self.x: C = None
        self.p: A = None
        self.w: G = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: G = None
        self.r: C = None
        self.v: I = None
        self.y: D = None
        self.z: D = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: G = None
        self.p: F = None
        self.w: B = None
        self.r: F = None
        self.u: C = None
        self.y: H = None
        self.z: I = None
        self.x: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: C = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.q: I = None
        self.t: F = None
        self.x: C = None
        self.p: A = None
        self.w: G = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: G = None
        self.r: C = None
        self.v: I = None
        self.y: D = None
        self.z: D = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: G = None
        self.p: F = None
        self.w: B = None
        self.r: F = None
        self.u: C = None
        self.y: H = None
        self.z: I = None
        self.x: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: E = None
        self.txt = txt

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

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