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y\0p\0e\0_\0)\0 \0{\0\r\0
241 \0       \0c\0a\0s\0e\0 \00\0:\0\r\0
242 \0       \0       \0r\0e\0t\0u\0r\0n\0 \0p\0a\0d\0_\0z\0_\0;\0\r\0
243 \0       \0c\0a\0s\0e\0 \01\0:\0\r\0
244 \0       \0       \0r\0e\0t\0u\0r\0n\0 \0p\0a\0d\0_\0r\0z\0_\0;\0\r\0
245 \0       \0c\0a\0s\0e\0 \02\0:\0\r\0
246 \0       \0       \0r\0e\0t\0u\0r\0n\0 \0p\0a\0d\0_\0r\0z\0_\0;\0\r\0
247 \0       \0d\0e\0f\0a\0u\0l\0t\0:\0\r\0
248 \0       \0       \0a\0s\0s\0e\0r\0t\0(\00\0)\0;\0\r\0
249 \0       \0       \0r\0e\0t\0u\0r\0n\0 \00\0.\00\0;\0\r\0
250 \0       \0}\0\r\0
251 \0}\0\r\0
252 \0\r\0
253 \0d\0o\0u\0b\0l\0e\0 \0I\0n\0p\0u\0t\0M\0a\0n\0a\0g\0e\0r\0:\0:\0G\0e\0t\0G\0a\0m\0e\0p\0a\0d\0M\0a\0n\0a\0g\0e\0d\0A\0n\0a\0l\0o\0g\0R\0y\0(\0)\0 \0c\0o\0n\0s\0t\0\r\0
254 \0{\0\r\0
255 \0       \0s\0w\0i\0t\0c\0h\0 \0(\0g\0a\0m\0e\0p\0a\0d\0_\0t\0y\0p\0e\0_\0)\0 \0{\0\r\0
256 \0       \0c\0a\0s\0e\0 \00\0:\0\r\0
257 \0       \0       \0r\0e\0t\0u\0r\0n\0 \0-\0p\0a\0d\0_\0r\0z\0_\0;\0\r\0
258 \0       \0c\0a\0s\0e\0 \01\0:\0\r\0
259 \0       \0       \0r\0e\0t\0u\0r\0n\0 \0s\0l\0i\0d\0e\0r\01\0_\0;\0\r\0
260 \0       \0c\0a\0s\0e\0 \02\0:\0\r\0
261 \0       \0       \0r\0e\0t\0u\0r\0n\0 \0-\0p\0a\0d\0_\0z\0_\0;\0\r\0
262 \0       \0d\0e\0f\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