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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: F = None
        self.p: H = None
        self.t: F = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: F = None
        self.y: G = None
        self.x: A = None
        self.r: E = None
        self.o: E = None
        self.v: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: J = None
        self.r: H = None
        self.u: D = None
        self.w: A = None
        self.s: F = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: A = None
        self.w: A = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: F = None
        self.p: H = None
        self.t: F = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: F = None
        self.y: G = None
        self.x: A = None
        self.r: E = None
        self.o: E = None
        self.v: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: J = None
        self.r: H = None
        self.u: D = None
        self.w: A = None
        self.s: F = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: A = None
        self.w: A = None
        self.txt = txt

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

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