class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: C = None
        self.o: B = None
        self.u: F = None
        self.v: B = None
        self.p: C = None
        self.s: J = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: G = None
        self.x: A = None
        self.v: H = None
        self.p: D = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: G = None
        self.z: H = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

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

h = A("h")
b = B("b")
a = C("a")
d = D("d")
l = E("l")
i = F("i")
n = G("n")
g = H("g")
j = I("j")
k = J("k")

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

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: G = None
        self.x: A = None
        self.v: H = None
        self.p: D = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: G = None
        self.z: H = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

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

h = A("h")
b = B("b")
a = C("a")
d = D("d")
l = E("l")
i = F("i")
n = G("n")
g = H("g")
j = I("j")
k = J("k")

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