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

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: B = None
        self.x: G = None
        self.o: B = None
        self.s: G = None
        self.w: E = None
        self.q: D = None
        self.txt = txt

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

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

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

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

j = A("j")
b = B("b")
k = C("k")
f = D("f")
e = E("e")
d = F("d")
l = G("l")
a = E("a")
i = B("i")

j.y = k
j.v = f
j.w = l
j.s = l
b.o = j
b.y = i
b.q = i
k.y = j
k.r = i
k.x = l
k.s = l
k.o = b
k.w = a
k.q = f
f.x = d
f.o = d
f.p = l
f.q = k
f.s = j
e.s = l
e.p = l
d.p = e
d.s = k
d.y = k
l.q = f
l.y = k
l.p = k
l.s = i
l.t = j
a.s = l
a.p = l
i.o = j
i.y = b
i.q = b
assert d.y.y.v.p.p.r.o.v.p.txt == "
class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: D = None
        self.w: G = None
        self.s: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: B = None
        self.x: G = None
        self.o: B = None
        self.s: G = None
        self.w: E = None
        self.q: D = None
        self.txt = txt

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

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

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

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

j = A("j")
b = B("b")
k = C("k")
f = D("f")
e = E("e")
d = F("d")
l = G("l")
a = E("a")
i = B("i")

j.y = k
j.v = f
j.w = l
j.s = l
b.o = j
b.y = i
b.q = i
k.y = j
k.r = i
k.x = l
k.s = l
k.o = b
k.w = a
k.q = f
f.x = d
f.o = d
f.p = l
f.q = k
f.s = j
e.s = l
e.p = l
d.p = e
d.s = k
d.y = k
l.q = f
l.y = k
l.p = k
l.s = i
l.t = j
a.s = l
a.p = l
i.o = j
i.y = b
i.q = b
assert d.y.y.v.p.p.r.o.v.p.txt == "l"