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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: I = None
        self.u: I = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: B = None
        self.u: H = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: I = None
        self.p: D = None
        self.y: E = None
        self.z: J = None
        self.o: I = None
        self.v: E = 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.r: A = None
        self.p: C = None
        self.x: C = None
        self.w: B = None
        self.v: G = None
        self.o: H = None
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: G = None
        self.w: A = None
        self.s: H = None
        self.r: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: I = None
        self.u: I = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: B = None
        self.u: H = None
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: I = None
        self.p: D = None
        self.y: E = None
        self.z: J = None
        self.o: I = None
        self.v: E = 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.r: A = None
        self.p: C = None
        self.x: C = None
        self.w: B = None
        self.v: G = None
        self.o: H = None
        self.s: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: G = None
        self.w: A = None
        self.s: H = None
        self.r: A = None
        self.txt = txt

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

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