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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: I = None
        self.p: D = None
        self.q: H = None
        self.v: G = None
        self.r: C = None
        self.z: G = None
        self.y: E = None
        self.u: G = None
        self.w: I = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: I = None
        self.p: D = None
        self.q: H = None
        self.v: G = None
        self.r: C = None
        self.z: G = None
        self.y: E = None
        self.u: G = None
        self.w: I = None
        self.txt = txt

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

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