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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: E = None
        self.q: F = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: A = None
        self.w: C = None
        self.y: E = None
        self.q: E = None
        self.txt = txt

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

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

h = A("h")
i = B("i")
m = C("m")
d = D("d")
a = E("a")
k = F("k")
n = G("n")
c = E("c")
b = E("b")

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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: E = None
        self.q: F = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: A = None
        self.w: C = None
        self.y: E = None
        self.q: E = None
        self.txt = txt

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

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

h = A("h")
i = B("i")
m = C("m")
d = D("d")
a = E("a")
k = F("k")
n = G("n")
c = E("c")
b = E("b")

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