class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: B = None
        self.v: F = None
        self.r: F = None
        self.u: F = None
        self.o: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: C = None
        self.w: E = None
        self.z: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.y: E = None
        self.w: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: C = None
        self.w: E = None
        self.z: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.y: E = None
        self.w: A = None
        self.txt = txt

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

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