class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: D = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: A = None
        self.v: C = None
        self.r: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: A = None
        self.v: C = None
        self.r: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: A = None
        self.txt = txt

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

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

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

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