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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: D = None
        self.o: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: A = None
        self.x: E = None
        self.z: B = None
        self.p: D = None
        self.r: A = None
        self.t: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: D = None
        self.o: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: A = None
        self.x: E = None
        self.z: B = None
        self.p: D = None
        self.r: A = None
        self.t: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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