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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: D = None
        self.t: D = None
        self.q: B = None
        self.u: B = None
        self.y: D = None
        self.s: G = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: H = None
        self.q: A = None
        self.s: F = None
        self.v: F = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: F = None
        self.t: C = None
        self.p: B = None
        self.z: G = None
        self.q: F = None
        self.u: H = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: F = None
        self.w: B = None
        self.r: E = None
        self.s: D = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: H = None
        self.v: D = None
        self.txt = txt

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

e = A("e")
k = B("k")
c = C("c")
g = D("g")
m = E("m")
b = F("b")
l = G("l")
n = H("n")
i = B("i")
j = F("j")

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: D = None
        self.t: D = None
        self.q: B = None
        self.u: B = None
        self.y: D = None
        self.s: G = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: H = None
        self.q: A = None
        self.s: F = None
        self.v: F = None
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: F = None
        self.t: C = None
        self.p: B = None
        self.z: G = None
        self.q: F = None
        self.u: H = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: F = None
        self.w: B = None
        self.r: E = None
        self.s: D = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: H = None
        self.v: D = None
        self.txt = txt

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

e = A("e")
k = B("k")
c = C("c")
g = D("g")
m = E("m")
b = F("b")
l = G("l")
n = H("n")
i = B("i")
j = F("j")

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