class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: B = None
        self.w: F = None
        self.v: F = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: C = None
        self.z: B = None
        self.v: D = None
        self.p: A = None
        self.o: F = None
        self.txt = txt

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

j.y = e
j.p = c
j.r = c
j.w = b
j.v = b
d.o = l
d.w = b
d.s = b
i.v = k
i.z = l
f.w = j
f.z = e
f.s = c
f.o = b
e.s = l
e.q = j
b.t = e
l.q = f
l.v = f
l.t = i
l.z = c
l.p = j
l.o = b
c.o = l
c.w = b
c.s = b
k.y = e
k.p = d
k.r = d
k.w = b
k.v = b
assert f.w.y.s.v.s.s.t.q.txt == "
class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: B = None
        self.w: F = None
        self.v: F = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.t: C = None
        self.z: B = None
        self.v: D = None
        self.p: A = None
        self.o: F = None
        self.txt = txt

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

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