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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: G = None
        self.x: B = None
        self.t: F = None
        self.w: E = None
        self.v: A = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: D = None
        self.u: C = None
        self.t: B = None
        self.x: F = None
        self.v: B = None
        self.txt = txt

l = A("l")
k = B("k")
g = C("g")
h = D("h")
b = E("b")
e = F("e")
i = G("i")
a = G("a")
n = A("n")
m = B("m")

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: G = None
        self.x: B = None
        self.t: F = None
        self.w: E = None
        self.v: A = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: D = None
        self.u: C = None
        self.t: B = None
        self.x: F = None
        self.v: B = None
        self.txt = txt

l = A("l")
k = B("k")
g = C("g")
h = D("h")
b = E("b")
e = F("e")
i = G("i")
a = G("a")
n = A("n")
m = B("m")

l.q = a
l.o = a
l.y = k
l.s = m
l.p = n
l.w = h
l.v = b
k.x = e
g.y = e
g.t = e
g.q = i
g.x = m
g.w = b
g.v = n
g.s = a
h.v = m
b.o = e
e.o = a
i.q = a
i.o = h
i.u = g
i.t = k
i.v = k
i.x = e
a.q = i
a.o = h
a.u = g
a.t = k
a.v = k
a.x = e
n.q = a
n.y = m
n.s = k
n.o = i
n.p = l
n.w = h
n.v = b
m.x = e
assert h.v.x.o.q.o.v.x.txt == "e"