class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: H = None
        self.o: C = None
        self.p: H = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: F = None
        self.o: I = None
        self.p: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: I = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: C = None
        self.t: B = None
        self.q: A = None
        self.w: I = None
        self.r: H = None
        self.z: B = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: F = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: F = None
        self.o: I = None
        self.p: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: I = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: C = None
        self.t: B = None
        self.q: A = None
        self.w: I = None
        self.r: H = None
        self.z: B = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: F = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: H = None
        self.txt = txt

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

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

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