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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: B = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: B = None
        self.t: F = None
        self.txt = txt

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

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