class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: B = None
        self.y: J = None
        self.t: D = None
        self.u: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: D = None
        self.x: G = None
        self.v: H = None
        self.u: D = None
        self.q: J = None
        self.p: H = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: H = None
        self.u: H = None
        self.r: H = None
        self.w: H = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.x: B = None
        self.u: G = None
        self.o: J = None
        self.y: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: D = None
        self.y: B = None
        self.s: B = None
        self.w: J = None
        self.r: B = None
        self.p: B = None
        self.q: A = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: J = None
        self.x: A = None
        self.t: B = None
        self.w: J = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: D = None
        self.x: G = None
        self.v: H = None
        self.u: D = None
        self.q: J = None
        self.p: H = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: J = None
        self.s: H = None
        self.u: H = None
        self.r: H = None
        self.w: H = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.x: B = None
        self.u: G = None
        self.o: J = None
        self.y: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: D = None
        self.y: B = None
        self.s: B = None
        self.w: J = None
        self.r: B = None
        self.p: B = None
        self.q: A = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: J = None
        self.x: A = None
        self.t: B = None
        self.w: J = None
        self.txt = txt

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

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

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