class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: H = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: I = None
        self.r: J = None
        self.v: J = None
        self.w: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: I = None
        self.t: A = None
        self.q: G = None
        self.y: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.v: A = None
        self.o: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: A = None
        self.u: C = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: I = None
        self.r: J = None
        self.v: J = None
        self.w: E = None
        self.y: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: I = None
        self.t: A = None
        self.q: G = None
        self.y: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: D = None
        self.v: A = None
        self.o: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: A = None
        self.u: C = None
        self.z: D = None
        self.txt = txt

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

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