class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: C = None
        self.r: E = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: G = None
        self.z: E = None
        self.y: B = None
        self.x: C = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.s: G = None
        self.z: E = None
        self.y: B = None
        self.x: C = None
        self.v: A = None
        self.txt = txt

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

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

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