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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: C = None
        self.y: A = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.v: C = None
        self.y: A = None
        self.t: B = None
        self.txt = txt

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

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