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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: G = None
        self.u: D = None
        self.v: E = None
        self.o: G = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: E = None
        self.o: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: F = None
        self.u: G = None
        self.t: B = None
        self.o: E = None
        self.r: C = None
        self.p: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: G = None
        self.u: D = None
        self.v: E = None
        self.o: G = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: E = None
        self.o: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: F = None
        self.u: G = None
        self.t: B = None
        self.o: E = None
        self.r: C = None
        self.p: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

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

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