Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define ALL(g) (g).begin(),(g).end()
- #define REP(i, x, n) for(int i = (int) x; i < (int)n; i++)
- #define rep(i,n) REP(i,0,n)
- #define RREP(i, x, n) for(int i = (int) n; i > (int)x; i--)
- #define rrep(i,n) RREP(i,0,n)
- #define F(i,j,k) fill(i[0],i[0]+j*j,k)
- #define P(p) cout<<(p)<<endl;
- #define EXIST(s,e) ((s).find(e)!=(s).end())
- #define INF 1<<25
- #define pb push_back
- #define SZ(x) ((int)(x).size())
- typedef vector<int> vi;
- typedef vector<long long> vl;
- typedef vector<double> vd;
- typedef pair<int,int> pii;
- typedef pair<long,long> pll;
- typedef long long ll;
- int main (){
- char a,b;
- cin >>a;
- cin >>b;
- if((a=='H' && b=='H') || (a=='D' && b=='D')){
- P('H');
- } else
- P('D');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement