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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: F = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: C = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: A = None
        self.z: D = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: B = None
        self.q: G = None
        self.t: H = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: F = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: C = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: A = None
        self.z: D = None
        self.q: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: B = None
        self.q: G = None
        self.t: H = None
        self.s: F = None
        self.txt = txt

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

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

k.v = f
k.o = e
i.q = a
m.s = c
m.z = a
m.u = a
c.u = m
c.q = m
c.t = g
e.z = i
e.u = i
e.q = a
e.t = a
e.v = k
a.u = k
a.r = k
a.z = c
a.q = g
l.o = g
l.t = g
l.y = i
l.q = f
l.s = a
g.q = k
g.y = k
g.u = m
g.p = e
g.z = f
f.o = g
f.t = g
f.y = i
f.q = b
f.s = a
b.o = g
b.t = g
b.y = i
b.q = l
b.s = a
assert e.v.o.q.txt == "a"