You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
272 B
22 lines
272 B
2 years ago
|
#include<iostream>
|
||
|
#include<cstdio>
|
||
|
#include<ctype.h>
|
||
|
using namespace std;
|
||
|
|
||
|
int main(void) {
|
||
|
int n, key1, key2;
|
||
|
cin >> n;
|
||
|
|
||
|
key1 = n % 123;
|
||
|
key2 = n % 91;
|
||
|
if(islower(key1))
|
||
|
putchar(key1);
|
||
|
else if(isupper(key2))
|
||
|
putchar(key2);
|
||
|
else
|
||
|
putchar('*');
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|