class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: B = None
        self.u: C = None
        self.o: E = None
        self.w: B = None
        self.p: F = None
        self.s: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: E = None
        self.o: A = None
        self.x: F = None
        self.u: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: E = None
        self.o: A = None
        self.x: F = None
        self.u: C = None
        self.txt = txt

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

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