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

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

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: D = None
        self.o: C = None
        self.p: D = None
        self.u: C = None
        self.w: A = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: C = None
        self.o: C = None
        self.u: F = None
        self.w: C = None
        self.r: F = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: D = None
        self.o: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: D = None
        self.o: C = None
        self.p: D = None
        self.u: C = None
        self.w: A = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.q: C = None
        self.o: C = None
        self.u: F = None
        self.w: C = None
        self.r: F = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: D = None
        self.o: B = None
        self.txt = txt

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

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