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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.v: A = None
        self.t: B = None
        self.y: I = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: C = None
        self.t: H = None
        self.o: B = None
        self.q: I = None
        self.y: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: A = None
        self.o: B = None
        self.r: J = None
        self.p: F = None
        self.u: E = None
        self.t: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: I = None
        self.o: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.v: A = None
        self.t: B = None
        self.y: I = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: C = None
        self.t: H = None
        self.o: B = None
        self.q: I = None
        self.y: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: A = None
        self.o: B = None
        self.r: J = None
        self.p: F = None
        self.u: E = None
        self.t: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: I = None
        self.o: I = None
        self.txt = txt

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

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