class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: G = None
        self.y: G = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.t: C = None
        self.txt = txt

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

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

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

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