class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: G = None
        self.s: E = None
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: G = None
        self.s: D = None
        self.u: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: B = None
        self.v: D = None
        self.y: G = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: B = None
        self.t: B = None
        self.o: C = None
        self.u: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: G = None
        self.s: D = None
        self.u: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: B = None
        self.v: D = None
        self.y: G = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: B = None
        self.t: B = None
        self.o: C = None
        self.u: E = None
        self.txt = txt

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

e.v = k
e.o = b
e.s = h
e.w = h
l.z = n
n.p = e
n.y = f
n.s = i
n.u = l
i.x = l
i.u = l
i.y = n
i.z = h
i.p = g
i.s = g
h.y = n
h.v = l
h.o = k
k.s = n
k.w = l
k.r = l
k.v = i
k.y = f
b.q = n
b.o = n
b.r = l
b.t = l
b.u = h
j.q = n
j.o = n
j.r = l
j.t = l
j.u = h
f.q = n
f.o = n
f.r = l
f.t = l
f.u = h
g.s = n
g.w = l
g.r = l
g.v = i
g.y = b
assert g.y.o.p.v.v.p.r.txt == "l"